{
	"info": {
		"_postman_id": "4a329778-2628-4816-a648-bfb8bc0cf964",
		"name": "Протокол 1.3 Временная нетрудоспособность",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "37937048"
	},
	"item": [
		{
			"name": "Case 1. Оказание медицинской помощи в амбулаторных условиях",
			"item": [
				{
					"name": "предварительные условия",
					"item": [
						{
							"name": "импорт пакета медицинской информации",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Валидный бандл должен отработать со статусом 202\", function () {\r",
											"    pm.response.to.have.status(202);\r",
											"});\r",
											"\r",
											"var jsonData = pm.response.json();\r",
											"let bundleId = jsonData.parameter.find(obj => obj.name === \"ResourceId\").valueString;\r",
											"let statusReference = jsonData.parameter.find(obj => obj.name === \"OperationStatusReference\");\r",
											"\r",
											"console.log(statusReference.valueReference.reference);\r",
											"\r",
											"pm.collectionVariables.set(\"bundleId\", bundleId);\r",
											"pm.collectionVariables.set(\"StatusUrl\", statusReference.valueReference.reference);\r",
											""
										],
										"type": "text/javascript",
										"packages": {},
										"requests": {}
									}
								},
								{
									"listen": "prerequest",
									"script": {
										"exec": [
											""
										],
										"type": "text/javascript",
										"packages": {},
										"requests": {}
									}
								}
							],
							"request": {
								"method": "POST",
								"header": [
									{
										"key": "X-Fhir-By-Version",
										"value": "active",
										"type": "text"
									}
								],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"resourceType\": \"Bundle\",\r\n    \"id\": \"ExampleBundleForDemo\",\r\n    \"meta\": {\r\n        \"profile\": [\r\n            \"https://fhir.by/AbstractArea/StructureDefinition/Bundle/MedicationDocument\"\r\n        ]\r\n    },\r\n    \"identifier\": {\r\n        \"system\": \"https://fhir.by/ValueSet/urn:ietf:rfc:3986\",\r\n        \"value\": \"{{$guid}}\"\r\n    },\r\n    \"type\": \"document\",\r\n    \"timestamp\": \"2024-07-22T11:12:21Z\",\r\n    \"entry\": [\r\n        {\r\n            \"fullUrl\": \"Composition/CompDocumentForDemo\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Composition\",\r\n                \"id\": \"{{$guid}}\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/CompDocument\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"type\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/CompositionType\",\r\n                            \"code\": \"general\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": [\r\n                    {\r\n                        \"reference\": \"Patient/Patient1\",\r\n                        \"display\": \"Ивов В.В.\"\r\n                    }\r\n                ],\r\n                \"date\": \"2024-07-22T11:12:21Z\",\r\n                \"author\": [\r\n                    {\r\n                        \"reference\": \"Practitioner/{{PractitionerId}}\",\r\n                        \"display\": \"Филатов И.А.\"\r\n                    }\r\n                ],\r\n                \"title\": \"Discharge Summary\",\r\n                \"custodian\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Patient/Patient1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Patient\",\r\n                \"id\": \"Patient1\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/PatientWithIdentificationNumber\"\r\n                    ]\r\n                },\r\n                \"identifier\": [\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"INP\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7001515A009PB6\"\r\n                    },\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"IPA\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7001515A009PB6\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedString\",\r\n                                        \"valueString\": \"Центральным РУВД г Минска, 21.08.2021\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedDate\",\r\n                                        \"valueDate\": \"2021-08-21\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedCode\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/OCAM\",\r\n                                                    \"code\": \"106\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PassportIssued\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"Passport-RB\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"MP0000011\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedString\",\r\n                                        \"valueString\": \"Центральным РУВД г Минска, 2024-01-31\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedDate\",\r\n                                        \"valueDate\": \"2024-01-31\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedCode\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/OCAM\",\r\n                                                    \"code\": \"106\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PassportIssued\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"CDP\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"period\": {\r\n                            \"start\": \"2025-09-20\"\r\n                        },\r\n                        \"value\": \"15№ 5003839\",\r\n                        \"assigner\": {\r\n                            \"reference\": \"Organization/{{OrganizationMREC}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"extension\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientJobProfession\",\r\n                                \"valueString\": \"Учитель начальных классов\"\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientJobProfessionCode\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/SpecialtyProfPerson\",\r\n                                            \"code\": \"2331-001\",\r\n                                            \"display\": \"Учитель\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientJobPlace\",\r\n                                \"valueString\": \"ГУО «Средняя школа № 15»\"\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/TermOFWork\",\r\n                                \"valuePeriod\": {\r\n                                    \"start\": \"2020-09-01\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/MainJobPlace\",\r\n                                \"valueBoolean\": true\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/PatientJob\"\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/DisabilityGroup\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/DisabilityGroup\",\r\n                                    \"code\": \"3_group\",\r\n                                    \"display\": \"III группа\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/DisabilityReason\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/DisabilityReason\",\r\n                                    \"code\": \"general\",\r\n                                    \"display\": \"общее заболевание\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    }\r\n                ],\r\n                \"active\": true,\r\n                \"name\": [\r\n                    {\r\n                        \"family\": \"Ивов\",\r\n                        \"given\": [\r\n                            \"Василий\",\r\n                            \"Васильевич\"\r\n                        ],\r\n                        \"period\": {\r\n                            \"start\": \"2024-01-31\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"telecom\": [\r\n                    {\r\n                        \"system\": \"phone\",\r\n                        \"value\": \"+375(29)224466\",\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientTelecomPurpose\",\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientAccountPoint\",\r\n                                        \"valueBoolean\": true\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientConsentForNotification\",\r\n                                        \"valueBoolean\": true\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"system\": \"email\",\r\n                        \"value\": \"tsv1@agsr.by\",\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientTelecomPurpose\",\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientAccountPoint\",\r\n                                        \"valueBoolean\": false\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientConsentForNotification\",\r\n                                        \"valueBoolean\": true\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"gender\": \"male\",\r\n                \"birthDate\": \"1989-01-31\",\r\n                \"deceasedBoolean\": false,\r\n                \"address\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"code\": \"1125824837\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 11\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"home\",\r\n                        \"postalCode\": \"212011\",\r\n                        \"text\": \"Беларусь, Могилевская область, г.Могилев, Переулок Гоголя, д.19 кв. 11, 212011\"\r\n                    }\r\n                ]\r\n            }\r\n        }\r\n    ]\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/$import",
									"protocol": "{{Schema}}",
									"host": [
										"{{Proxy-host}}"
									],
									"path": [
										"fhir",
										"Bundle",
										"$import"
									]
								}
							},
							"response": []
						},
						{
							"name": "получение статуса импорта пакета медицинских данных",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/{{bundleId}}/$status",
									"protocol": "{{Schema}}",
									"host": [
										"{{Proxy-host}}"
									],
									"path": [
										"fhir",
										"Bundle",
										"{{bundleId}}",
										"$status"
									]
								}
							},
							"response": []
						},
						{
							"name": "поиск пациента по идентификационному номеру",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"var jsonData = pm.response.json();\r",
											"let patientId = jsonData.entry.find(obj => obj.resource.resourceType === \"Patient\").resource.id;\r",
											"\r",
											"pm.collectionVariables.set(\"patientId\", patientId);\r",
											"console.log(patientId)\r",
											""
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"protocolProfileBehavior": {
								"disableBodyPruning": true
							},
							"request": {
								"method": "GET",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient?identifier=7001515A009PB6",
									"protocol": "{{Schema}}",
									"host": [
										"{{Proxy-host}}"
									],
									"path": [
										"fhir",
										"Patient"
									],
									"query": [
										{
											"key": "identifier",
											"value": "7001515A009PB6"
										}
									]
								}
							},
							"response": []
						}
					]
				},
				{
					"name": "CASE 1.1 Оформление бумажного листка нетрудоспособности по общему заболеванию",
					"item": [
						{
							"name": "CASE 1.1.1 Открытие бумажного листка нетрудоспособности",
							"item": [
								{
									"name": "проверка отсутствия у пациента Сведений о ВН",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"protocolProfileBehavior": {
										"disableBodyPruning": true
									},
									"request": {
										"method": "GET",
										"header": [],
										"body": {
											"mode": "raw",
											"raw": ""
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/EpisodeOfCare?_profile=https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisability&patient={{patientId}}",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Patient",
												"{{patientId}}",
												"EpisodeOfCare"
											],
											"query": [
												{
													"key": "_profile",
													"value": "https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisability"
												},
												{
													"key": "patient",
													"value": "{{patientId}}"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "проверка отсутствия у пациента открытого случая ВН",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"protocolProfileBehavior": {
										"disableBodyPruning": true
									},
									"request": {
										"method": "GET",
										"header": [],
										"body": {
											"mode": "raw",
											"raw": ""
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/EpisodeOfCare?_profile=https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisabilitySum&patient={{patientId}}",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Patient",
												"{{patientId}}",
												"EpisodeOfCare"
											],
											"query": [
												{
													"key": "_profile",
													"value": "https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisabilitySum"
												},
												{
													"key": "patient",
													"value": "{{patientId}}"
												},
												{
													"key": "status",
													"value": "active",
													"disabled": true
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "импорт Сведений о ВН из МИС в ЦИСЗ",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"pm.test(\"Валидный бандл должен отработать со статусом 202\", function () {\r",
													"    pm.response.to.have.status(202);\r",
													"});\r",
													"\r",
													"var jsonData = pm.response.json();\r",
													"let bundleId = jsonData.parameter.find(obj => obj.name === \"ResourceId\").valueString;\r",
													"let statusReference = jsonData.parameter.find(obj => obj.name === \"OperationStatusReference\");\r",
													"\r",
													"console.log(statusReference.valueReference.reference);\r",
													"\r",
													"pm.collectionVariables.set(\"bundleId\", bundleId);\r",
													"pm.collectionVariables.set(\"StatusUrl\", statusReference.valueReference.reference);\r",
													""
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"request": {
										"method": "POST",
										"header": [
											{
												"key": "X-Fhir-By-Version",
												"value": "active",
												"type": "text"
											}
										],
										"body": {
											"mode": "raw",
											"raw": "{\r\n    \"resourceType\": \"Bundle\",\r\n    \"id\": \"BundleFull\",\r\n    \"meta\": {\r\n        \"profile\": [\r\n            \"https://fhir.by/AbstractArea/StructureDefinition/Bundle/MedicationDocument\"\r\n        ]\r\n    },\r\n    \"identifier\": {\r\n        \"system\": \"https://fhir.by/ValueSet/urn:ietf:rfc:3986\",\r\n        \"value\": \"{{$guid}}\"\r\n    },\r\n    \"type\": \"document\",\r\n    \"timestamp\": \"2024-04-07T11:12:21Z\",\r\n    \"entry\": [\r\n        {\r\n            \"fullUrl\": \"Composition/CompositionFullBundle\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Composition\",\r\n                \"id\": \"{{$guid}}\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/CompDocument\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"type\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/CompositionType\",\r\n                            \"code\": \"general\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": [\r\n                    {\r\n                        \"reference\": \"Patient/Patient1\",\r\n                        \"display\": \"Ивов В.В.\"\r\n                    }\r\n                ],\r\n                \"encounter\": {\r\n                    \"reference\": \"Encounter/EncounterBundleForTest\"\r\n                },\r\n                \"date\": \"2024-07-22T11:12:21Z\",\r\n                \"author\": [\r\n                    {\r\n                        \"reference\": \"Practitioner/{{PractitionerId}}\",\r\n                        \"display\": \"Иванов В.Э.\"\r\n                    }\r\n                ],\r\n                \"title\": \"Discharge Summary\",\r\n                \"custodian\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Patient/Patient1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Patient\",\r\n                \"id\": \"Patient1\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/PatientWithIdentificationNumber\"\r\n                    ]\r\n                },\r\n                \"identifier\": [\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"INP\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7001515A009PB6\"\r\n                    },\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"IPA\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7001515A009PB6\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedString\",\r\n                                        \"valueString\": \"Центральным РУВД г Минска, 21.08.2021\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedDate\",\r\n                                        \"valueDate\": \"2021-08-21\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedCode\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/OCAM\",\r\n                                                    \"code\": \"106\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PassportIssued\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"Passport-RB\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"MP0000011\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedString\",\r\n                                        \"valueString\": \"Центральным РУВД г Минска, 2024-01-31\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedDate\",\r\n                                        \"valueDate\": \"2024-01-31\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedCode\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/OCAM\",\r\n                                                    \"code\": \"106\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PassportIssued\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"CDP\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"period\": {\r\n                            \"start\": \"2025-09-20\"\r\n                        },\r\n                        \"value\": \"15№ 5003839\",\r\n                        \"assigner\": {\r\n                            \"reference\": \"Organization/{{OrganizationMREC}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"extension\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientJobProfession\",\r\n                                \"valueString\": \"Учитель начальных классов\"\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientJobProfessionCode\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/SpecialtyProfPerson\",\r\n                                            \"code\": \"2331-001\",\r\n                                            \"display\": \"Учитель\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientJobPlace\",\r\n                                \"valueString\": \"ГУО «Средняя школа № 15»\"\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/TermOFWork\",\r\n                                \"valuePeriod\": {\r\n                                    \"start\": \"2020-09-01\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/MainJobPlace\",\r\n                                \"valueBoolean\": true\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/PatientJob\"\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/DisabilityGroup\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/DisabilityGroup\",\r\n                                    \"code\": \"3_group\",\r\n                                    \"display\": \"III группа\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/DisabilityReason\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/DisabilityReason\",\r\n                                    \"code\": \"general\",\r\n                                    \"display\": \"общее заболевание\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    }\r\n                ],\r\n                \"active\": true,\r\n                \"name\": [\r\n                    {\r\n                        \"family\": \"Ивов\",\r\n                        \"given\": [\r\n                            \"Василий\",\r\n                            \"Васильевич\"\r\n                        ],\r\n                        \"period\": {\r\n                            \"start\": \"2024-01-31\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"telecom\": [\r\n                    {\r\n                        \"system\": \"phone\",\r\n                        \"value\": \"+375(29)224466\",\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientTelecomPurpose\",\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientAccountPoint\",\r\n                                        \"valueBoolean\": true\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientConsentForNotification\",\r\n                                        \"valueBoolean\": true\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"system\": \"email\",\r\n                        \"value\": \"tsv1@agsr.by\",\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientTelecomPurpose\",\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientAccountPoint\",\r\n                                        \"valueBoolean\": false\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientConsentForNotification\",\r\n                                        \"valueBoolean\": true\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"gender\": \"male\",\r\n                \"birthDate\": \"1989-01-31\",\r\n                \"deceasedBoolean\": false,\r\n                \"address\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"code\": \"1125824837\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 11\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"home\",\r\n                        \"postalCode\": \"212011\",\r\n                        \"text\": \"Беларусь, Могилевская область, г.Могилев, Переулок Гоголя, д.19 кв. 11, 212011\"\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Condition/DiagnosisrFullBundle\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Condition\",\r\n                \"id\": \"DiagnosisrFullBundle\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/FinalDiagnosis\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/KindOfDiagnosis\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/KindOfDiagnosisCode\",\r\n                                    \"code\": \"Preliminary\",\r\n                                    \"display\": \"Предварительный диагноз\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/AssertedDate\",\r\n                        \"valueDateTime\": \"2024-04-07\"\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/CourseOfDisease\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/CourseOfDisease\",\r\n                                    \"code\": \"acute\",\r\n                                    \"display\": \"Острое течение заболевания\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    }\r\n                ],\r\n                \"clinicalStatus\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"http://terminology.hl7.org/CodeSystem/condition-clinical\",\r\n                            \"code\": \"active\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/InternClassificDiseases10\",\r\n                            \"code\": \"J10\",\r\n                            \"display\": \"J10 - Грипп, вызванный идентифицированным сезонным вирусом гриппа\"\r\n                        }\r\n                    ],\r\n                    \"text\": \" Грипп. Гипертермический синдром\"\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/Patient1\",\r\n                    \"display\": \"Ивов Василий Васильевич\"\r\n                },\r\n                \"onsetDateTime\": \"2024-04-07\",\r\n                \"recordedDate\": \"2024-04-07\",\r\n                \"participant\": [\r\n                    {\r\n                        \"actor\": {\r\n                            \"reference\": \"PractitionerRole/{{PractitionerRole}}\",\r\n                            \"display\": \"Иванов В.Э.\"\r\n                        }\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Encounter/EncounterBundleForTest\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Encounter\",\r\n                \"id\": \"EncounterBundleForTest\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/EncounterGeneral\"\r\n                    ]\r\n                },\r\n                \"status\": \"completed\",\r\n                \"class\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/VSTermsOfService\",\r\n                                \"code\": \"1\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"priority\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/HealthCareForms\",\r\n                            \"code\": \"planned\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"type\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/TypeOfHealthCare\",\r\n                                \"code\": \"primary\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/Patient1\"\r\n                },\r\n                \"serviceProvider\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"participant\": [\r\n                    {\r\n                        \"actor\": {\r\n                            \"reference\": \"Practitioner/{{PractitionerId}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"actualPeriod\": {\r\n                    \"start\": \"2024-02-07T11:12:21Z\",\r\n                    \"end\": \"2024-02-07T11:25:21Z\"\r\n                },\r\n                \"diagnosis\": [\r\n                    {\r\n                        \"condition\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"use\": [\r\n                            {\r\n                                \"coding\": [\r\n                                    {\r\n                                        \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                        \"code\": \"mainDiagnosis\"\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"EpisodeOfCare/ExampleTDCaseF1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"EpisodeOfCare\",\r\n                \"id\": \"ExampleTDCaseF1\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisability\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDisabilityKindDisability\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityKindDisability\",\r\n                                    \"code\": \"01\",\r\n                                    \"display\": \"в связи с заболеванием общим\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDiasabilityEncounterAction\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/SeakLeavePeriod\",\r\n                                    \"code\": \"open\",\r\n                                    \"display\": \"Открытие нового случая\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDisabilityPeriodPaid\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityPeriodPaidCode\",\r\n                                    \"code\": \"1\",\r\n                                    \"display\": \"оплачиваемый период\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDisabilityRegime\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityRegime\",\r\n                                    \"code\": \"1\",\r\n                                    \"display\": \"амбулаторный\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/EncounterReference\",\r\n                        \"valueReference\": {\r\n                            \"reference\": \"Encounter/EncounterBundleForTest\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"identifier\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/TemporaryDiasabilityExpirationDate\",\r\n                                \"valueDate\": \"2025-04-01\"\r\n                            }\r\n                        ],\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityDocType\",\r\n                                    \"code\": \"tdsheet\",\r\n                                    \"display\": \"Листок временной нетрудоспособности\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"AB25673566\",\r\n                        \"period\": {\r\n                            \"start\": \"2025-04-01\",\r\n                            \"end\": \"2025-04-04\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"status\": \"active\",\r\n                \"diagnosis\": [\r\n                    {\r\n                        \"condition\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"patient\": {\r\n                    \"reference\": \"Patient/Patient1\"\r\n                },\r\n                \"managingOrganization\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"period\": {\r\n                    \"start\": \"2025-04-01\",\r\n                    \"end\": \"2025-04-04\"\r\n                },\r\n                \"careManager\": {\r\n                    \"reference\": \"PractitionerRole/{{PractitionerRole}}\",\r\n                    \"display\": \"Лечащий врач Иванов В.Э.\"\r\n                }\r\n            }\r\n        }\r\n    ]\r\n}",
											"options": {
												"raw": {
													"language": "json"
												}
											}
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/$import",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Bundle",
												"$import"
											]
										}
									},
									"response": []
								},
								{
									"name": "проверка сохранения Сведений о ВН в ЦИСЗ",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = pm.response.json();\r",
													"let resourceId = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.id;\r",
													"let conditionId = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.diagnosis[0].condition[0].reference.reference.split('/')[1];\r",
													"\r",
													"pm.collectionVariables.set(\"tempDis1\", resourceId);\r",
													"pm.collectionVariables.set(\"conditionId\", conditionId);\r",
													"\r",
													"console.log(resourceId)\r",
													"console.log(conditionId)"
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"protocolProfileBehavior": {
										"disableBodyPruning": true
									},
									"request": {
										"method": "GET",
										"header": [],
										"body": {
											"mode": "raw",
											"raw": ""
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/EpisodeOfCare?_profile=https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisability&patient={{patientId}}&date=2025-04-01",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Patient",
												"{{patientId}}",
												"EpisodeOfCare"
											],
											"query": [
												{
													"key": "_profile",
													"value": "https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisability"
												},
												{
													"key": "patient",
													"value": "{{patientId}}"
												},
												{
													"key": "date",
													"value": "2025-04-01"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "получение статуса импорта пакета медицинских данных",
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "X-Fhir-By-Version",
												"value": "0.3.4768",
												"type": "text",
												"disabled": true
											}
										],
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/{{bundleId}}/$status",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Bundle",
												"{{bundleId}}",
												"$status"
											]
										}
									},
									"response": []
								},
								{
									"name": "проверка создания  Случая ВН",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = pm.response.json();\r",
													"let EpisodeOfCareVN = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.id;\r",
													"\r",
													"pm.collectionVariables.set(\"EpisodeOfCareVN\", EpisodeOfCareVN);\r",
													"console.log(EpisodeOfCareVN)"
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"protocolProfileBehavior": {
										"disableBodyPruning": true,
										"disabledSystemHeaders": {
											"accept": true
										}
									},
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Accept",
												"value": "text/html",
												"type": "text",
												"disabled": true
											}
										],
										"body": {
											"mode": "raw",
											"raw": ""
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/EpisodeOfCare?_profile=https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisabilitySum&patient={{patientId}}",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Patient",
												"{{patientId}}",
												"EpisodeOfCare"
											],
											"query": [
												{
													"key": "_profile",
													"value": "https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisabilitySum"
												},
												{
													"key": "patient",
													"value": "{{patientId}}"
												},
												{
													"key": "status",
													"value": "active",
													"disabled": true
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "проверка получения  Случая ВН",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"protocolProfileBehavior": {
										"disableBodyPruning": true
									},
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Accept",
												"value": "text/html",
												"type": "text"
											}
										],
										"body": {
											"mode": "raw",
											"raw": ""
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/EpisodeOfCare/{{EpisodeOfCareVN}}",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Patient",
												"{{patientId}}",
												"EpisodeOfCare",
												"{{EpisodeOfCareVN}}"
											],
											"query": [
												{
													"key": "status",
													"value": "active",
													"disabled": true
												}
											]
										}
									},
									"response": []
								}
							]
						},
						{
							"name": "CASE 1.1.2:  Запись в бумажном листке нетрудоспособности о продлении случая ВН",
							"item": [
								{
									"name": "импорт Сведений о ВН из МИС в ЦИСЗ",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"pm.test(\"Валидный бандл должен отработать со статусом 202\", function () {\r",
													"    pm.response.to.have.status(202);\r",
													"});\r",
													"\r",
													"var jsonData = pm.response.json();\r",
													"let bundleId = jsonData.parameter.find(obj => obj.name === \"ResourceId\").valueString;\r",
													"let statusReference = jsonData.parameter.find(obj => obj.name === \"OperationStatusReference\");\r",
													"\r",
													"console.log(statusReference.valueReference.reference);\r",
													"\r",
													"pm.collectionVariables.set(\"bundleId\", bundleId);\r",
													"pm.collectionVariables.set(\"StatusUrl\", statusReference.valueReference.reference);\r",
													""
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"request": {
										"method": "POST",
										"header": [
											{
												"key": "X-Fhir-By-Version",
												"value": "active",
												"type": "text"
											}
										],
										"body": {
											"mode": "raw",
											"raw": "{\r\n    \"resourceType\": \"Bundle\",\r\n    \"id\": \"BundleFull\",\r\n    \"meta\": {\r\n        \"profile\": [\r\n            \"https://fhir.by/AbstractArea/StructureDefinition/Bundle/MedicationDocument\"\r\n        ]\r\n    },\r\n    \"identifier\": {\r\n        \"system\": \"https://fhir.by/ValueSet/urn:ietf:rfc:3986\",\r\n        \"value\": \"{{$guid}}\"\r\n    },\r\n    \"type\": \"document\",\r\n    \"timestamp\": \"2024-04-07T11:12:21Z\",\r\n    \"entry\": [\r\n        {\r\n            \"fullUrl\": \"Composition/CompositionFullBundle\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Composition\",\r\n                \"id\": \"{{$guid}}\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/CompDocument\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"type\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/CompositionType\",\r\n                            \"code\": \"general\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": [\r\n                    {\r\n                        \"reference\": \"Patient/Patient1\",\r\n                        \"display\": \"Ивов В.В.\"\r\n                    }\r\n                ],\r\n                \"date\": \"2024-07-22T11:12:21Z\",\r\n                \"author\": [\r\n                    {\r\n                        \"reference\": \"Practitioner/{{PractitionerId}}\",\r\n                        \"display\": \"Иванов В.Э.\"\r\n                    }\r\n                ],\r\n                \"title\": \"Discharge Summary\",\r\n                \"custodian\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Patient/Patient1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Patient\",\r\n                \"id\": \"Patient1\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/PatientWithIdentificationNumber\"\r\n                    ]\r\n                },\r\n                \"identifier\": [\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"INP\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7001515A009PB6\"\r\n                    },\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"IPA\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7001515A009PB6\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedString\",\r\n                                        \"valueString\": \"Центральным РУВД г Минска, 21.08.2021\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedDate\",\r\n                                        \"valueDate\": \"2021-08-21\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedCode\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/OCAM\",\r\n                                                    \"code\": \"106\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PassportIssued\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"Passport-RB\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"MP0000011\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedString\",\r\n                                        \"valueString\": \"Центральным РУВД г Минска, 2024-01-31\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedDate\",\r\n                                        \"valueDate\": \"2024-01-31\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedCode\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/OCAM\",\r\n                                                    \"code\": \"106\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PassportIssued\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"CDP\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"period\": {\r\n                            \"start\": \"2025-09-20\"\r\n                        },\r\n                        \"value\": \"15№ 5003839\",\r\n                        \"assigner\": {\r\n                            \"reference\": \"Organization/{{OrganizationMREC}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"extension\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientJobProfession\",\r\n                                \"valueString\": \"Учитель начальных классов\"\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientJobProfessionCode\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/SpecialtyProfPerson\",\r\n                                            \"code\": \"2331-001\",\r\n                                            \"display\": \"Учитель\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientJobPlace\",\r\n                                \"valueString\": \"ГУО «Средняя школа № 15»\"\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/TermOFWork\",\r\n                                \"valuePeriod\": {\r\n                                    \"start\": \"2020-09-01\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/MainJobPlace\",\r\n                                \"valueBoolean\": true\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/PatientJob\"\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/DisabilityGroup\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/DisabilityGroup\",\r\n                                    \"code\": \"3_group\",\r\n                                    \"display\": \"III группа\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/DisabilityReason\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/DisabilityReason\",\r\n                                    \"code\": \"general\",\r\n                                    \"display\": \"общее заболевание\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    }\r\n                ],\r\n                \"active\": true,\r\n                \"name\": [\r\n                    {\r\n                        \"family\": \"Ивов\",\r\n                        \"given\": [\r\n                            \"Василий\",\r\n                            \"Васильевич\"\r\n                        ],\r\n                        \"period\": {\r\n                            \"start\": \"2024-01-31\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"telecom\": [\r\n                    {\r\n                        \"system\": \"phone\",\r\n                        \"value\": \"+375(29)224466\",\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientTelecomPurpose\",\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientAccountPoint\",\r\n                                        \"valueBoolean\": true\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientConsentForNotification\",\r\n                                        \"valueBoolean\": true\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"system\": \"email\",\r\n                        \"value\": \"tsv1@agsr.by\",\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientTelecomPurpose\",\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientAccountPoint\",\r\n                                        \"valueBoolean\": false\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientConsentForNotification\",\r\n                                        \"valueBoolean\": true\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"gender\": \"male\",\r\n                \"birthDate\": \"1989-01-31\",\r\n                \"deceasedBoolean\": false,\r\n                \"address\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"code\": \"1125824837\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 11\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"home\",\r\n                        \"postalCode\": \"212011\",\r\n                        \"text\": \"Беларусь, Могилевская область, г.Могилев, Переулок Гоголя, д.19 кв. 11, 212011\"\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Condition/DiagnosisrFullBundle\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Condition\",\r\n                \"id\": \"DiagnosisrFullBundle\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/FinalDiagnosis\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/KindOfDiagnosis\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/KindOfDiagnosisCode\",\r\n                                    \"code\": \"Final\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/AssertedDate\",\r\n                        \"valueDateTime\": \"2024-04-07\"\r\n                    }\r\n                ],\r\n                \"clinicalStatus\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"http://terminology.hl7.org/CodeSystem/condition-clinical\",\r\n                            \"code\": \"active\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/InternClassificDiseases10\",\r\n                            \"code\": \"J10\",\r\n                            \"display\": \"J10 - Грипп, вызванный идентифицированным сезонным вирусом гриппа\"\r\n                        }\r\n                    ],\r\n                    \"text\": \" Грипп, тяжелое течение. Гипертермический синдром\"\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/Patient1\",\r\n                    \"display\": \"Ивов Василий Васильевич\"\r\n                },\r\n                \"onsetDateTime\": \"2024-04-07\",\r\n                \"recordedDate\": \"2024-04-07\",\r\n                \"participant\": [\r\n                    {\r\n                        \"actor\": {\r\n                            \"reference\": \"PractitionerRole/{{PractitionerRole}}\",\r\n                            \"display\": \"Иванов В.Э.\"\r\n                        }\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Encounter/EncounterBundleForTest\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Encounter\",\r\n                \"id\": \"EncounterBundleForTest\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/EncounterGeneral\"\r\n                    ]\r\n                },\r\n                \"status\": \"completed\",\r\n                \"class\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/VSTermsOfService\",\r\n                                \"code\": \"1\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"priority\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/HealthCareForms\",\r\n                            \"code\": \"planned\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"type\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/TypeOfHealthCare\",\r\n                                \"code\": \"primary\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/Patient1\"\r\n                },\r\n                \"serviceProvider\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"participant\": [\r\n                    {\r\n                        \"actor\": {\r\n                            \"reference\": \"Practitioner/{{PractitionerId}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"actualPeriod\": {\r\n                    \"start\": \"2025-04-05T11:12:21Z\",\r\n                    \"end\": \"2025-04-05T11:25:21Z\"\r\n                },\r\n                \"diagnosis\": [\r\n                    {\r\n                        \"condition\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"use\": [\r\n                            {\r\n                                \"coding\": [\r\n                                    {\r\n                                        \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                        \"code\": \"mainDiagnosis\"\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"EpisodeOfCare/ExampleTDCaseF1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"EpisodeOfCare\",\r\n                \"id\": \"ExampleTDCaseF1\",\r\n                \"meta\": {\r\n                    \r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisability\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDisabilityKindDisability\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityKindDisability\",\r\n                                    \"code\": \"01\",\r\n                                    \"display\": \"в связи с заболеванием общим\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDiasabilityEncounterAction\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/SeakLeavePeriod\",\r\n                                    \"code\": \"prolong\",\r\n                                    \"display\": \"Продление случая временной нетрудоспособности\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDisabilityPeriodPaid\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityPeriodPaidCode\",\r\n                                    \"code\": \"1\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDisabilityRegime\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityRegime\",\r\n                                    \"code\": \"1\",\r\n                                    \"display\": \"амбулаторный\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    }\r\n                ],\r\n                \"status\": \"active\",\r\n                \"diagnosis\": [\r\n                    {\r\n                        \"condition\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"patient\": {\r\n                    \"reference\": \"Patient/Patient1\"\r\n                },\r\n                \"managingOrganization\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"period\": {\r\n                    \"start\": \"2025-04-05\",\r\n                    \"end\": \"2025-04-09\"\r\n                },\r\n                \"careManager\": {\r\n                    \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\",\r\n                    \"display\": \"Лечащий врач Иванов\"\r\n                }\r\n            }\r\n        }\r\n    ]\r\n}",
											"options": {
												"raw": {
													"language": "json"
												}
											}
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/$import",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Bundle",
												"$import"
											]
										}
									},
									"response": []
								},
								{
									"name": "получение статуса импорта пакета медицинских данных",
									"request": {
										"method": "GET",
										"header": [],
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/{{bundleId}}/$status",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Bundle",
												"{{bundleId}}",
												"$status"
											]
										}
									},
									"response": []
								},
								{
									"name": "проверка сохранения Сведений о ВН в ЦИСЗ",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = pm.response.json();\r",
													"let resourceId = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.id;\r",
													"let conditionId = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.diagnosis[0].condition[0].reference.reference.split('/')[1];\r",
													"\r",
													"pm.collectionVariables.set(\"tempDis2\", resourceId);\r",
													"pm.collectionVariables.set(\"conditionId\", conditionId);\r",
													"\r",
													"console.log(resourceId)\r",
													"console.log(conditionId)"
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"protocolProfileBehavior": {
										"disableBodyPruning": true
									},
									"request": {
										"method": "GET",
										"header": [],
										"body": {
											"mode": "raw",
											"raw": ""
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/EpisodeOfCare?_profile=https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisability&patient={{patientId}}&_sort=-_lastUpdated",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Patient",
												"{{patientId}}",
												"EpisodeOfCare"
											],
											"query": [
												{
													"key": "_profile",
													"value": "https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisability"
												},
												{
													"key": "patient",
													"value": "{{patientId}}"
												},
												{
													"key": "date",
													"value": "2025-04-05",
													"disabled": true
												},
												{
													"key": "identifier",
													"value": "AB2222222",
													"disabled": true
												},
												{
													"key": "_sort",
													"value": "-_lastUpdated"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "проверка сохранения изменений в Случай ВН",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = pm.response.json();\r",
													"let EpisodeOfCareVN = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.id;\r",
													"\r",
													"pm.collectionVariables.set(\"EpisodeOfCareVN\", EpisodeOfCareVN);\r",
													"console.log(EpisodeOfCareVN)"
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"protocolProfileBehavior": {
										"disableBodyPruning": true
									},
									"request": {
										"method": "GET",
										"header": [],
										"body": {
											"mode": "raw",
											"raw": ""
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/EpisodeOfCare?_profile=https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisabilitySum&patient={{patientId}}",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Patient",
												"{{patientId}}",
												"EpisodeOfCare"
											],
											"query": [
												{
													"key": "_profile",
													"value": "https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisabilitySum"
												},
												{
													"key": "patient",
													"value": "{{patientId}}"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "проверка получения  Случая ВН",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"protocolProfileBehavior": {
										"disableBodyPruning": true
									},
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Accept",
												"value": "text/html",
												"type": "text"
											}
										],
										"body": {
											"mode": "raw",
											"raw": ""
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/EpisodeOfCare/{{EpisodeOfCareVN}}",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Patient",
												"{{patientId}}",
												"EpisodeOfCare",
												"{{EpisodeOfCareVN}}"
											],
											"query": [
												{
													"key": "status",
													"value": "active",
													"disabled": true
												}
											]
										}
									},
									"response": []
								}
							]
						},
						{
							"name": "CASE 1.1.3 Закрытие бумажного листка нетрудоспособности (с особыми отметками)",
							"item": [
								{
									"name": "импорт Сведений о ВН из МИС в ЦИСЗ",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"pm.test(\"Валидный бандл должен отработать со статусом 202\", function () {\r",
													"    pm.response.to.have.status(202);\r",
													"});\r",
													"\r",
													"var jsonData = pm.response.json();\r",
													"let bundleId = jsonData.parameter.find(obj => obj.name === \"ResourceId\").valueString;\r",
													"let statusReference = jsonData.parameter.find(obj => obj.name === \"OperationStatusReference\");\r",
													"\r",
													"console.log(statusReference.valueReference.reference);\r",
													"\r",
													"pm.collectionVariables.set(\"bundleId\", bundleId);\r",
													"pm.collectionVariables.set(\"StatusUrl\", statusReference.valueReference.reference);\r",
													""
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"request": {
										"method": "POST",
										"header": [
											{
												"key": "X-Fhir-By-Version",
												"value": "active",
												"type": "text"
											}
										],
										"body": {
											"mode": "raw",
											"raw": "{\r\n    \"resourceType\": \"Bundle\",\r\n    \"id\": \"BundleFull\",\r\n    \"meta\": {\r\n        \"profile\": [\r\n            \"https://fhir.by/AbstractArea/StructureDefinition/Bundle/MedicationDocument\"\r\n        ]\r\n    },\r\n    \"identifier\": {\r\n        \"system\": \"https://fhir.by/ValueSet/urn:ietf:rfc:3986\",\r\n        \"value\": \"{{$guid}}\"\r\n    },\r\n    \"type\": \"document\",\r\n    \"timestamp\": \"2024-04-07T11:12:21Z\",\r\n    \"entry\": [\r\n        {\r\n            \"fullUrl\": \"Composition/CompositionFullBundle\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Composition\",\r\n                \"id\": \"{{$guid}}\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/CompDocument\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"type\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/CompositionType\",\r\n                            \"code\": \"general\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": [\r\n                    {\r\n                        \"reference\": \"Patient/Patient1\",\r\n                        \"display\": \"Ивов В.В.\"\r\n                    }\r\n                ],\r\n                \"date\": \"2024-07-22T11:12:21Z\",\r\n                \"author\": [\r\n                    {\r\n                        \"reference\": \"Practitioner/{{PractitionerId}}\",\r\n                        \"display\": \"Филатов И.А.\"\r\n                    }\r\n                ],\r\n                \"title\": \"Discharge Summary\",\r\n                \"custodian\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Patient/Patient1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Patient\",\r\n                \"id\": \"Patient1\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/PatientWithIdentificationNumber\"\r\n                    ]\r\n                },\r\n                \"identifier\": [\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"INP\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7001515A009PB6\"\r\n                    },\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"IPA\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7001515A009PB6\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedString\",\r\n                                        \"valueString\": \"Центральным РУВД г Минска, 21.08.2021\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedDate\",\r\n                                        \"valueDate\": \"2021-08-21\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedCode\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/OCAM\",\r\n                                                    \"code\": \"106\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PassportIssued\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"Passport-RB\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"MP0000011\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedString\",\r\n                                        \"valueString\": \"Центральным РУВД г Минска, 2024-01-31\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedDate\",\r\n                                        \"valueDate\": \"2024-01-31\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedCode\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/OCAM\",\r\n                                                    \"code\": \"106\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PassportIssued\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"CDP\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"period\": {\r\n                            \"start\": \"2025-09-20\"\r\n                        },\r\n                        \"value\": \"15№ 5003839\",\r\n                        \"assigner\": {\r\n                            \"reference\": \"Organization/{{OrganizationMREC}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"extension\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientJobProfession\",\r\n                                \"valueString\": \"Учитель начальных классов\"\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientJobProfessionCode\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/SpecialtyProfPerson\",\r\n                                            \"code\": \"2331-001\",\r\n                                            \"display\": \"Учитель\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientJobPlace\",\r\n                                \"valueString\": \"ГУО «Средняя школа № 15»\"\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/TermOFWork\",\r\n                                \"valuePeriod\": {\r\n                                    \"start\": \"2020-09-01\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/MainJobPlace\",\r\n                                \"valueBoolean\": true\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/PatientJob\"\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/DisabilityGroup\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/DisabilityGroup\",\r\n                                    \"code\": \"3_group\",\r\n                                    \"display\": \"III группа\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/DisabilityReason\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/DisabilityReason\",\r\n                                    \"code\": \"general\",\r\n                                    \"display\": \"общее заболевание\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    }\r\n                ],\r\n                \"active\": true,\r\n                \"name\": [\r\n                    {\r\n                        \"family\": \"Ивов\",\r\n                        \"given\": [\r\n                            \"Василий\",\r\n                            \"Васильевич\"\r\n                        ],\r\n                        \"period\": {\r\n                            \"start\": \"2024-01-31\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"telecom\": [\r\n                    {\r\n                        \"system\": \"phone\",\r\n                        \"value\": \"+375(29)224466\",\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientTelecomPurpose\",\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientAccountPoint\",\r\n                                        \"valueBoolean\": true\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientConsentForNotification\",\r\n                                        \"valueBoolean\": true\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"system\": \"email\",\r\n                        \"value\": \"tsv1@agsr.by\",\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientTelecomPurpose\",\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientAccountPoint\",\r\n                                        \"valueBoolean\": false\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientConsentForNotification\",\r\n                                        \"valueBoolean\": true\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"gender\": \"male\",\r\n                \"birthDate\": \"1989-01-31\",\r\n                \"deceasedBoolean\": false,\r\n                \"address\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"code\": \"1125824837\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 11\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"home\",\r\n                        \"postalCode\": \"212011\",\r\n                        \"text\": \"Беларусь, Могилевская область, г.Могилев, Переулок Гоголя, д.19 кв. 11, 212011\"\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Condition/DiagnosisrFullBundle\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Condition\",\r\n                \"id\": \"DiagnosisrFullBundle\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/FinalDiagnosis\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/KindOfDiagnosis\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/KindOfDiagnosisCode\",\r\n                                    \"code\": \"Final\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/AssertedDate\",\r\n                        \"valueDateTime\": \"2024-04-07\"\r\n                    }\r\n                ],\r\n                \"clinicalStatus\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"http://terminology.hl7.org/CodeSystem/condition-clinical\",\r\n                            \"code\": \"active\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/InternClassificDiseases10\",\r\n                            \"code\": \"J10\",\r\n                            \"display\": \"J10 - Грипп, вызванный идентифицированным сезонным вирусом гриппа\"\r\n                        }\r\n                    ],\r\n                    \"text\": \" Грипп, тяжелое течение. Гипертермический синдром\"\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/Patient1\",\r\n                    \"display\": \"Ивов Василий Васильевич\"\r\n                },\r\n                \"onsetDateTime\": \"2024-04-07\",\r\n                \"recordedDate\": \"2024-04-07\",\r\n                \"participant\": [\r\n                    {\r\n                        \"actor\": {\r\n                            \"reference\": \"PractitionerRole/{{PractitionerRole}}\",\r\n                            \"display\": \"Иванов В.Э.\"\r\n                        }\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Encounter/EncounterBundleForTest\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Encounter\",\r\n                \"id\": \"EncounterBundleForTest\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/EncounterGeneral\"\r\n                    ]\r\n                },\r\n                \"status\": \"completed\",\r\n                \"class\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/VSTermsOfService\",\r\n                                \"code\": \"1\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"priority\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/HealthCareForms\",\r\n                            \"code\": \"planned\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"type\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/TypeOfHealthCare\",\r\n                                \"code\": \"primary\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/Patient1\"\r\n                },\r\n                \"serviceProvider\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"participant\": [\r\n                    {\r\n                        \"actor\": {\r\n                            \"reference\": \"Practitioner/{{PractitionerId}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"actualPeriod\": {\r\n                    \"start\": \"2024-02-07T11:12:21Z\",\r\n                    \"end\": \"2024-02-07T11:25:21Z\"\r\n                },\r\n                \"diagnosis\": [\r\n                    {\r\n                        \"condition\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"use\": [\r\n                            {\r\n                                \"coding\": [\r\n                                    {\r\n                                        \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                        \"code\": \"mainDiagnosis\"\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"EpisodeOfCare/ExampleTDCaseF1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"EpisodeOfCare\",\r\n                \"id\": \"ExampleTDCaseF1\",\r\n                \"meta\": {\r\n                    \"lastUpdated\": \"2025-04-01T10:30:00Z\",\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisability\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDisabilityKindDisability\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityKindDisability\",\r\n                                    \"code\": \"01\",\r\n                                    \"display\": \"в связи с заболеванием общим\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDiasabilityEncounterAction\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/SeakLeavePeriod\",\r\n                                    \"code\": \"close\",\r\n                                    \"display\": \"Закрытие случая\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDisabilityPeriodPaid\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityPeriodPaidCode\",\r\n                                    \"code\": \"1\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TDCaseClosing\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TDCaseClosing\",\r\n                                    \"code\": \"1\",\r\n                                    \"display\": \"Трудоспособен\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDisabilityRegime\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityRegime\",\r\n                                    \"code\": \"1\",\r\n                                    \"display\": \"амбулаторный\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/GoToWork\",\r\n                        \"valueDate\":  \"2025-04-09\"\r\n                        \r\n                    }\r\n                ],\r\n                \"identifier\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/TemporaryDiasabilityExpirationDate\",\r\n                                \"valueDate\": \"2025-04-01\"\r\n                            }\r\n                        ],\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityDocType\",\r\n                                    \"code\": \"tdsheet\",\r\n                                    \"display\": \"Лист временной нетрудоспособности\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"AB1111111\",\r\n                        \"period\": {\r\n                            \"start\": \"2025-04-01\",\r\n                            \"end\": \"2025-04-09\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"status\": \"finished\",\r\n                \"reason\": [\r\n                    {\r\n                        \"use\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityReasonOfDisability\",\r\n                                    \"code\": \"33\",\r\n                                    \"display\": \"грипп (J10, J11)\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    }\r\n                ],\r\n                \"diagnosis\": [\r\n                    {\r\n                        \"condition\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"patient\": {\r\n                    \"reference\": \"Patient/Patient1\"\r\n                },\r\n                \"managingOrganization\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"careManager\": {\r\n                    \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\",\r\n                    \"display\": \"Лечащий врач Иванова\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Flag/FlagTDCase1.1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Flag\",\r\n                \"id\": \"FlagTDCase1.1\",\r\n                \"meta\": {\r\n                    \"lastUpdated\": \"2025-04-01T10:30:00Z\",\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/FlagTemporaryDisability\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/DateFlagReason\",\r\n                        \"valueDate\": \"2025-04-09\"\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/EpOCTDReference\",\r\n                        \"valueReference\": {\r\n                            \"reference\": \"EpisodeOfCare/ExampleTDCaseF1\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/RequestFromOrganization\",\r\n                        \"valueReference\": {\r\n                            \"reference\": \"Organization/{{OrganizationId}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"status\": \"active\",\r\n                \"code\": {\r\n                    \"extension\": [\r\n                        {\r\n                            \"url\": \"https://fhir.by/StructureDefinition/SpecialMarkPractitionerRole\",\r\n                            \"valueReference\": {\r\n                                \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\"\r\n                            }\r\n                        }\r\n                    ],\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/FlagSpecialMarks\",\r\n                            \"code\": \"not-associated-with-disability\",\r\n                            \"display\": \"заболевание не связано с причиной инвалидности\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/Patient1\",\r\n                    \"display\": \"Ивов В.В.\"\r\n                },\r\n                \"author\": {\r\n                    \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\",\r\n                    \"display\": \"Лечащий врач Иванов\"\r\n                }\r\n            }\r\n        }\r\n    ]\r\n}",
											"options": {
												"raw": {
													"language": "json"
												}
											}
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/$import",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Bundle",
												"$import"
											]
										}
									},
									"response": []
								},
								{
									"name": "получение статуса импорта пакета медицинских данных",
									"request": {
										"method": "GET",
										"header": [],
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/{{bundleId}}/$status",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Bundle",
												"{{bundleId}}",
												"$status"
											]
										}
									},
									"response": []
								},
								{
									"name": "проверка сохранения Сведений о ВН в ЦИСЗ",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = pm.response.json();\r",
													"let resourceId = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.id;\r",
													"let conditionId = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.diagnosis[0].condition[0].reference.reference.split('/')[1];\r",
													"\r",
													"pm.collectionVariables.set(\"tempDisClose\", resourceId);\r",
													"pm.collectionVariables.set(\"conditionId\", conditionId);\r",
													"\r",
													"console.log(resourceId)\r",
													"console.log(conditionId)"
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"protocolProfileBehavior": {
										"disableBodyPruning": true
									},
									"request": {
										"method": "GET",
										"header": [],
										"body": {
											"mode": "raw",
											"raw": ""
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/EpisodeOfCare?_profile=https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisability&patient={{patientId}}&_sort=-_lastUpdated",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Patient",
												"{{patientId}}",
												"EpisodeOfCare"
											],
											"query": [
												{
													"key": "_profile",
													"value": "https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisability"
												},
												{
													"key": "patient",
													"value": "{{patientId}}"
												},
												{
													"key": "identifier",
													"value": "AB2222222",
													"disabled": true
												},
												{
													"key": "date",
													"value": "2025-04-20",
													"disabled": true
												},
												{
													"key": "_sort",
													"value": "-_lastUpdated"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "проверка создания  особых отметок",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = pm.response.json();\r",
													"let resourceId = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.id;\r",
													"\r",
													"pm.collectionVariables.set(\"tdBabyCareSum\", resourceId);\r",
													"\r",
													"console.log(resourceId)\r",
													""
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"protocolProfileBehavior": {
										"disableBodyPruning": true
									},
									"request": {
										"method": "GET",
										"header": [],
										"body": {
											"mode": "raw",
											"raw": ""
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/Flag?_profile=https://fhir.by/StructureDefinition/FlagTemporaryDisability&patient={{patientId}}",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Patient",
												"{{patientId}}",
												"Flag"
											],
											"query": [
												{
													"key": "_profile",
													"value": "https://fhir.by/StructureDefinition/FlagTemporaryDisability"
												},
												{
													"key": "patient",
													"value": "{{patientId}}"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "проверка сохранения изменений в Случай ВН",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = pm.response.json();\r",
													"let EpisodeOfCareVN = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.id;\r",
													"\r",
													"pm.collectionVariables.set(\"EpisodeOfCareVN\", EpisodeOfCareVN);\r",
													"console.log(EpisodeOfCareVN)"
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"protocolProfileBehavior": {
										"disableBodyPruning": true
									},
									"request": {
										"method": "GET",
										"header": [],
										"body": {
											"mode": "raw",
											"raw": ""
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/EpisodeOfCare?_profile=https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisabilitySum&patient={{patientId}}",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Patient",
												"{{patientId}}",
												"EpisodeOfCare"
											],
											"query": [
												{
													"key": "_profile",
													"value": "https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisabilitySum"
												},
												{
													"key": "patient",
													"value": "{{patientId}}"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "проверка получения  Случая ВН",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"protocolProfileBehavior": {
										"disableBodyPruning": true
									},
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Accept",
												"value": "text/html",
												"type": "text"
											}
										],
										"body": {
											"mode": "raw",
											"raw": ""
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/EpisodeOfCare/{{EpisodeOfCareVN}}",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Patient",
												"{{patientId}}",
												"EpisodeOfCare",
												"{{EpisodeOfCareVN}}"
											],
											"query": [
												{
													"key": "status",
													"value": "active",
													"disabled": true
												}
											]
										}
									},
									"response": []
								}
							]
						}
					]
				},
				{
					"name": "CASE 1.2 Оформление бумажного листка нетрудоспособности по уходу за больным ребенком",
					"item": [
						{
							"name": "предварительные условия",
							"item": [
								{
									"name": "импорт пакета медицинской информации",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"pm.test(\"Валидный бандл должен отработать со статусом 202\", function () {\r",
													"    pm.response.to.have.status(202);\r",
													"});\r",
													"\r",
													"var jsonData = pm.response.json();\r",
													"let bundleId = jsonData.parameter.find(obj => obj.name === \"ResourceId\").valueString;\r",
													"let statusReference = jsonData.parameter.find(obj => obj.name === \"OperationStatusReference\");\r",
													"\r",
													"console.log(statusReference.valueReference.reference);\r",
													"\r",
													"pm.collectionVariables.set(\"bundleId\", bundleId);\r",
													"pm.collectionVariables.set(\"StatusUrl\", statusReference.valueReference.reference);\r",
													""
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										},
										{
											"listen": "prerequest",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"request": {
										"method": "POST",
										"header": [
											{
												"key": "X-Fhir-By-Version",
												"value": "active",
												"type": "text"
											}
										],
										"body": {
											"mode": "raw",
											"raw": "{\r\n    \"resourceType\": \"Bundle\",\r\n    \"id\": \"ExampleBundleForDemo\",\r\n    \"meta\": {\r\n        \"profile\": [\r\n            \"https://fhir.by/AbstractArea/StructureDefinition/Bundle/MedicationDocument\"\r\n        ]\r\n    },\r\n    \"identifier\": {\r\n        \"system\": \"https://fhir.by/ValueSet/urn:ietf:rfc:3986\",\r\n        \"value\": \"{{$guid}}\"\r\n    },\r\n    \"type\": \"document\",\r\n    \"timestamp\": \"2024-07-22T11:12:21Z\",\r\n    \"entry\": [\r\n        {\r\n            \"fullUrl\": \"Composition/CompDocumentForDemo\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Composition\",\r\n                \"id\": \"{{$guid}}\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/CompDocument\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"type\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/CompositionType\",\r\n                            \"code\": \"general\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": [\r\n                    {\r\n                        \"reference\": \"Patient/Patient1\"\r\n                        \r\n                    }\r\n                ],\r\n                \"date\": \"2024-07-22T11:12:21Z\",\r\n                \"author\": [\r\n                    {\r\n                        \"reference\": \"Practitioner/{{PractitionerId}}\",\r\n                        \"display\": \"Иванов В.Э.\"\r\n                    }\r\n                ],\r\n                \"title\": \"Discharge Summary\",\r\n                \"custodian\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Patient/Patient1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Patient\",\r\n                \"id\": \"Patient1\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/PatientWithIdentificationNumber\"\r\n                    ]\r\n                },\r\n                \"identifier\": [\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"INP\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7551729A009PB1\"\r\n                    },\r\n                    \r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedString\",\r\n                                        \"valueString\": \"Центральным РУВД г Минска, 21.08.2021\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedDate\",\r\n                                        \"valueDate\": \"2021-08-21\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedCode\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/OCAM\",\r\n                                                    \"code\": \"106\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PassportIssued\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"Passport-RB\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"MP0001311\"\r\n                    }\r\n                ],\r\n                \"active\": true,\r\n                \"name\": [\r\n                    {\r\n                        \"family\": \"Петров\",\r\n                        \"given\": [\r\n                            \"Олег\",\r\n                            \"Петрович\"\r\n                        ],\r\n                        \"period\": {\r\n                            \"start\": \"2024-01-31\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"telecom\": [\r\n                   \r\n                    {\r\n                        \"system\": \"phone\",\r\n                        \"value\": \"89001234568\",\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientTelecomPurpose\",\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientAccountPoint\",\r\n                                        \"valueBoolean\": true\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientConsentForNotification\",\r\n                                        \"valueBoolean\": true\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    },\r\n                                       \r\n                    {\r\n                        \"system\": \"email\",\r\n                        \"value\": \"tsv1@agsr.by\",\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientTelecomPurpose\",\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientAccountPoint\",\r\n                                        \"valueBoolean\": false\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientConsentForNotification\",\r\n                                        \"valueBoolean\": true\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"gender\": \"male\",\r\n                \"birthDate\": \"2015-01-31\",\r\n                \"deceasedBoolean\": false,\r\n                \"address\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"code\": \"1125824837\"                                            \r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 11\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"home\",\r\n                        \"postalCode\": \"212011\",\r\n                        \"text\": \"Беларусь, Могилевская область, г.Могилев, Переулок Гоголя, д.19 кв. 11, 212011\"\r\n                    }\r\n                ]\r\n            }\r\n        }\r\n    ]\r\n}",
											"options": {
												"raw": {
													"language": "json"
												}
											}
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/$import",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Bundle",
												"$import"
											]
										}
									},
									"response": []
								},
								{
									"name": "получение статуса импорта пакета медицинских данных",
									"request": {
										"method": "GET",
										"header": [],
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/{{bundleId}}/$status",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Bundle",
												"{{bundleId}}",
												"$status"
											]
										}
									},
									"response": []
								},
								{
									"name": "поиск пациента по идентификационному номеру",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = pm.response.json();\r",
													"let patientId = jsonData.entry.find(obj => obj.resource.resourceType === \"Patient\").resource.id;\r",
													"\r",
													"pm.collectionVariables.set(\"patientId\", patientId);\r",
													"console.log(patientId)\r",
													""
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"protocolProfileBehavior": {
										"disableBodyPruning": true
									},
									"request": {
										"method": "GET",
										"header": [],
										"body": {
											"mode": "raw",
											"raw": "",
											"options": {
												"raw": {
													"language": "json"
												}
											}
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient?identifier=7551729A009PB1",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Patient"
											],
											"query": [
												{
													"key": "identifier",
													"value": "7551729A009PB1"
												}
											]
										}
									},
									"response": []
								}
							]
						},
						{
							"name": "1.2.1 Открытие случая о ВН",
							"item": [
								{
									"name": "импорт Сведений о ВН из МИС в ЦИСЗ",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"pm.test(\"Валидный бандл должен отработать со статусом 202\", function () {\r",
													"    pm.response.to.have.status(202);\r",
													"});\r",
													"\r",
													"var jsonData = pm.response.json();\r",
													"let bundleId = jsonData.parameter.find(obj => obj.name === \"ResourceId\").valueString;\r",
													"let statusReference = jsonData.parameter.find(obj => obj.name === \"OperationStatusReference\");\r",
													"\r",
													"console.log(statusReference.valueReference.reference);\r",
													"\r",
													"pm.collectionVariables.set(\"bundleId\", bundleId);\r",
													"pm.collectionVariables.set(\"StatusUrl\", statusReference.valueReference.reference);\r",
													""
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"request": {
										"method": "POST",
										"header": [
											{
												"key": "X-Fhir-By-Version",
												"value": "active",
												"type": "text"
											}
										],
										"body": {
											"mode": "raw",
											"raw": "{\r\n    \"resourceType\": \"Bundle\",\r\n    \"id\": \"BundleFull\",\r\n    \"meta\": {\r\n        \"profile\": [\r\n            \"https://fhir.by/AbstractArea/StructureDefinition/Bundle/MedicationDocument\"\r\n        ]\r\n    },\r\n    \"identifier\": {\r\n        \"system\": \"https://fhir.by/ValueSet/urn:ietf:rfc:3986\",\r\n        \"value\": \"{{$guid}}\"\r\n    },\r\n    \"type\": \"document\",\r\n    \"timestamp\": \"2024-04-07T11:12:21Z\",\r\n    \"entry\": [\r\n        {\r\n            \"fullUrl\": \"Composition/CompositionFullBundle\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Composition\",\r\n                \"id\": \"{{$guid}}\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/CompDocument\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"type\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/CompositionType\",\r\n                            \"code\": \"general\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": [\r\n                    {\r\n                        \"reference\": \"Patient/Patient1\",\r\n                        \"display\": \"Петров О.П\"\r\n                    }\r\n                ],\r\n                \"date\": \"2024-07-22T11:12:21Z\",\r\n                \"author\": [\r\n                    {\r\n                        \"reference\": \"Practitioner/{{PractitionerId}}\",\r\n                        \"display\": \"Иванов Э.В.\"\r\n                    }\r\n                ],\r\n                \"title\": \"Discharge Summary\",\r\n                \"custodian\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Patient/Patient1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Patient\",\r\n                \"id\": \"Patient1\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/PatientWithIdentificationNumber\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"extension\": [\r\n                           \r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientStudyKind\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/EducationKind\",\r\n                                            \"code\": \"pupil\",\r\n                                            \"display\": \"ученик\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientStudyPlace\",\r\n                                \"valueString\": \"ГУО «Средняя школа № 15»\"\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientTermOfStudy\",\r\n                                \"valuePeriod\": {\r\n                                    \"start\": \"2020-09-01\"\r\n                                }\r\n                            }\r\n                            \r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/PatientStudy\"\r\n                    }\r\n                    \r\n                ],\r\n                \"identifier\": [\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"INP\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7551729A009PB1\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedString\",\r\n                                        \"valueString\": \"Центральным РУВД г Минска, 21.08.2021\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedDate\",\r\n                                        \"valueDate\": \"2021-08-21\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedCode\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/OCAM\",\r\n                                                    \"code\": \"106\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PassportIssued\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"Passport-RB\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"MP0001311\"\r\n                    }\r\n                ],\r\n                \"active\": true,\r\n                \"name\": [\r\n                    {\r\n                        \"family\": \"Петров\",\r\n                        \"given\": [\r\n                            \"Олег\",\r\n                            \"Петрович\"\r\n                        ],\r\n                        \"period\": {\r\n                            \"start\": \"2024-01-31\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"telecom\": [\r\n                    {\r\n                        \"system\": \"phone\",\r\n                        \"value\": \"89001234568\",\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientTelecomPurpose\",\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientAccountPoint\",\r\n                                        \"valueBoolean\": true\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientConsentForNotification\",\r\n                                        \"valueBoolean\": true\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"system\": \"email\",\r\n                        \"value\": \"tsv1@agsr.by\",\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientTelecomPurpose\",\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientAccountPoint\",\r\n                                        \"valueBoolean\": false\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientConsentForNotification\",\r\n                                        \"valueBoolean\": true\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"gender\": \"male\",\r\n                \"birthDate\": \"2015-01-31\",\r\n                \"deceasedBoolean\": false,\r\n                \"address\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"code\": \"1125824837\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 11\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"home\",\r\n                        \"postalCode\": \"212011\",\r\n                        \"text\": \"Беларусь, Могилевская область, г.Могилев, Переулок Гоголя, д.19 кв. 11, 212011\"\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"RelatedPerson/ExampleRelatedPersonCorolevaIV\",\r\n            \"resource\": {\r\n                \"resourceType\": \"RelatedPerson\",\r\n                \"id\": \"ExampleRelatedPersonCorolevaIV\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/RelatedPersonPermanentBy\"\r\n                    ]\r\n                },\r\n                \"identifier\": [\r\n                    {\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"INP\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7551000A009PB5\",\r\n                        \"period\": {\r\n                            \"start\": \"2024-01-31\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedString\",\r\n                                        \"valueString\": \"Центральным РУВД г Минска, 11.08.2021\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedDate\",\r\n                                        \"valueDate\": \"2021-08-11\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedCode\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/OCAM\",\r\n                                                    \"code\": \"106\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PassportIssued\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"Passport-RB\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"MP1234579\"\r\n                    }\r\n                ],\r\n                \"active\": true,\r\n                \"patient\": {\r\n                    \"reference\": \"Patient/Patient1\"\r\n                },\r\n                \"relationship\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/RelatedPersonType\",\r\n                                \"code\": \"mother\",\r\n                                \"display\": \"мать\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"name\": [\r\n                    {\r\n                        \"family\": \"Петрова\",\r\n                        \"given\": [\r\n                            \"Ирина\",\r\n                            \"Владимировна\"\r\n                        ]\r\n                    }\r\n                ],\r\n                \"telecom\": [\r\n                    {\r\n                        \"system\": \"phone\",\r\n                        \"value\": \"+375172000669\",\r\n                        \"period\": {\r\n                            \"start\": \"2024-01-31\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"gender\": \"female\",\r\n                \"birthDate\": \"1992-10-08\",\r\n                \"address\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"code\": \"72609920778\",\r\n                                            \"display\": \"Переулок Снежный\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 11\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"home\",\r\n                        \"text\": \"Могилевская область, г.Могилев, Переулок Гоголя, д.19\",\r\n                        \"postalCode\": \"212011\"\r\n                    }\r\n                ],\r\n                \"period\": {\r\n                    \"start\": \"2024-01-31\",\r\n                    \"end\": \"2025-09-30\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Encounter/EncounterBundleForTest\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Encounter\",\r\n                \"id\": \"EncounterBundleForTest\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/EncounterGeneral\"\r\n                    ]\r\n                },\r\n                \"status\": \"completed\",\r\n                \"class\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/VSTermsOfService\",\r\n                                \"code\": \"1\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"priority\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/HealthCareForms\",\r\n                            \"code\": \"planned\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"type\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/TypeOfHealthCare\",\r\n                                \"code\": \"primary\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/Patient1\"\r\n                },\r\n                \"serviceProvider\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"participant\": [\r\n                    {\r\n                        \"actor\": {\r\n                            \"reference\": \"Practitioner/{{PractitionerId}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"actualPeriod\": {\r\n                    \"start\": \"2024-02-07T11:12:21Z\",\r\n                    \"end\": \"2024-02-07T11:25:21Z\"\r\n                },\r\n                \"diagnosis\": [\r\n                    {\r\n                        \"condition\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"use\": [\r\n                            {\r\n                                \"coding\": [\r\n                                    {\r\n                                        \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                        \"code\": \"mainDiagnosis\"\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Condition/DiagnosisrFullBundle\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Condition\",\r\n                \"id\": \"DiagnosisrFullBundle\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/FinalDiagnosis\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/KindOfDiagnosis\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/KindOfDiagnosisCode\",\r\n                                    \"code\": \"Preliminary\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/AssertedDate\",\r\n                        \"valueDateTime\": \"2024-04-07\"\r\n                    }\r\n                ],\r\n                \"clinicalStatus\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"http://terminology.hl7.org/CodeSystem/condition-clinical\",\r\n                            \"code\": \"active\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/InternClassificDiseases10\",\r\n                            \"code\": \"J03\",\r\n                            \"display\": \"J03 - Острый тонзиллит\"\r\n                        }\r\n                    ],\r\n                    \"text\": \"Острый двусторонний тонзиллит\"\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/Patient1\",\r\n                    \"display\": \"Петров О.П.\"\r\n                },\r\n                \"onsetDateTime\": \"2024-04-07\",\r\n                \"recordedDate\": \"2024-04-07\",\r\n                \"participant\": [\r\n                    {\r\n                        \"actor\": {\r\n                            \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\",\r\n                            \"display\": \"Иванов В.Э.\"\r\n                        }\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Flag/FlagTDCase1.1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Flag\",\r\n                \"id\": \"FlagTDCase1.1\",\r\n                \"meta\": {\r\n                    \"lastUpdated\": \"2025-04-01T10:30:00Z\",\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/FlagTemporaryDisability\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/DateFlagReason\",\r\n                        \"valueDate\": \"2025-04-01\"\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/EpOCTDReference\",\r\n                        \"valueReference\": {\r\n                            \"reference\": \"EpisodeOfCare/ExampleTDCase4.1\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/RequestFromOrganization\",\r\n                        \"valueReference\": {\r\n                            \"reference\": \"Organization/{{OrganizationId}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"status\": \"active\",\r\n                \"code\": {\r\n                    \"extension\": [\r\n                        {\r\n                            \"url\": \"https://fhir.by/StructureDefinition/SpecialMarkPractitionerRole\",\r\n                            \"valueReference\": {\r\n                                \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\"\r\n                            }\r\n                        },\r\n                        {\r\n                            \"url\": \"https://fhir.by/StructureDefinition/SpecialMarkString\",\r\n                            \"valueString\": \" Петр, 2015-01-31 \"\r\n                        }\r\n                    ],\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/FlagSpecialMarks\",\r\n                            \"code\": \"name-date-of-birth-child\",\r\n                            \"display\": \"собственное имя, дата рождения ребенка\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/Patient1\"\r\n                    \r\n                },\r\n                \"author\": {\r\n                    \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\",\r\n                    \"display\": \"Лечащий врач Иванов\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"EpisodeOfCare/ExampleTDCase4.1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"EpisodeOfCare\",\r\n                \"id\": \"ExampleTDCase4.1\",\r\n                \"meta\": {\r\n                    \"lastUpdated\": \"2023-03-02T10:30:00Z\",\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisability\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/ReceiverRelatedPerson\",\r\n                        \"valueReference\": {\r\n                            \"reference\": \"RelatedPerson/ExampleRelatedPersonCorolevaIV\",\r\n                            \"display\": \"Петрова Ирина Владимировна, дата рождения 08.10.1992 г.р.\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDisabilityKindDisability\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityKindDisability\",\r\n                                    \"code\": \"03\",\r\n                                    \"display\": \"в связи с уходом за больным ребенком до 14 лет \"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDiasabilityEncounterAction\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/SeakLeavePeriod\",\r\n                                    \"code\": \"open\",\r\n                                    \"display\": \"Открытие случая временной нетрудоспособности\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDisabilityPeriodPaid\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityPeriodPaidCode\",\r\n                                    \"code\": \"1\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDisabilityRegime\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityRegime\",\r\n                                    \"code\": \"1\",\r\n                                    \"display\": \"амбулаторный\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    }\r\n                   \r\n                ],\r\n                \"identifier\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/TemporaryDiasabilityExpirationDate\",\r\n                                \"valueDate\": \"2025-05-01\"\r\n                            }\r\n                        ],\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityDocType\",\r\n                                    \"code\": \"tdsheet\",\r\n                                    \"display\": \"Листок временной нетрудоспособности\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"AB7777777\",\r\n                        \"period\": {\r\n                            \"start\": \"2025-05-01\",\r\n                            \"end\": \"2025-05-07\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"status\": \"active\",\r\n                \"patient\": {\r\n                    \"reference\": \"Patient/Patient1\",\r\n                    \"display\": \"Петров О.П.\"\r\n                },\r\n                \"managingOrganization\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"period\": {\r\n                    \"start\": \"2025-05-01\",\r\n                    \"end\": \"2025-05-07\"\r\n                },\r\n                \"careManager\": {\r\n                    \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\",\r\n                    \"display\": \"Лечащий врач Иванова\"\r\n                }\r\n            }\r\n        }\r\n    ]\r\n}",
											"options": {
												"raw": {
													"language": "json"
												}
											}
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/$import",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Bundle",
												"$import"
											]
										}
									},
									"response": []
								},
								{
									"name": "получение статуса импорта пакета медицинских данных",
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "X-Fhir-By-Version",
												"value": "0.3.4768",
												"type": "text",
												"disabled": true
											}
										],
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/{{bundleId}}/$status",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Bundle",
												"{{bundleId}}",
												"$status"
											]
										}
									},
									"response": []
								},
								{
									"name": "Поиск законного представителя",
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "X-Fhir-By-Version",
												"value": "0.3.4768",
												"type": "text",
												"disabled": true
											}
										],
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/RelatedPerson?_profile=https://fhir.by/StructureDefinition/RelatedPersonPermanentBy&_sort=-_lastUpdated",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Patient",
												"{{patientId}}",
												"RelatedPerson"
											],
											"query": [
												{
													"key": "_profile",
													"value": "https://fhir.by/StructureDefinition/RelatedPersonPermanentBy"
												},
												{
													"key": "_sort",
													"value": "-_lastUpdated"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "проверка сохранения Сведений о ВН в ЦИСЗ",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = pm.response.json();\r",
													"let resourceId = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.id;\r",
													"\r",
													"pm.collectionVariables.set(\"tdBabyCare\", resourceId);\r",
													"\r",
													"console.log(resourceId)\r",
													""
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"protocolProfileBehavior": {
										"disableBodyPruning": true
									},
									"request": {
										"method": "GET",
										"header": [],
										"body": {
											"mode": "raw",
											"raw": ""
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/EpisodeOfCare?_profile=https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisability&date=2025-05-01",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Patient",
												"{{patientId}}",
												"EpisodeOfCare"
											],
											"query": [
												{
													"key": "_profile",
													"value": "https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisability"
												},
												{
													"key": "date",
													"value": "2025-05-01"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "проверка создания  особых отметок",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = pm.response.json();\r",
													"let resourceId = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.id;\r",
													"\r",
													"pm.collectionVariables.set(\"tdBabyCareSum\", resourceId);\r",
													"\r",
													"console.log(resourceId)\r",
													""
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"protocolProfileBehavior": {
										"disableBodyPruning": true
									},
									"request": {
										"method": "GET",
										"header": [],
										"body": {
											"mode": "raw",
											"raw": ""
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/Flag?_profile=https://fhir.by/StructureDefinition/FlagTemporaryDisability&patient={{patientId}}",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Patient",
												"{{patientId}}",
												"Flag"
											],
											"query": [
												{
													"key": "_profile",
													"value": "https://fhir.by/StructureDefinition/FlagTemporaryDisability"
												},
												{
													"key": "patient",
													"value": "{{patientId}}"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "проверка создания  Случая ВН",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = pm.response.json();\r",
													"let EpisodeOfCareVN = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.id;\r",
													"\r",
													"pm.collectionVariables.set(\"EpisodeOfCareVN\", EpisodeOfCareVN);\r",
													"console.log(EpisodeOfCareVN)"
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"protocolProfileBehavior": {
										"disableBodyPruning": true
									},
									"request": {
										"method": "GET",
										"header": [],
										"body": {
											"mode": "raw",
											"raw": ""
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/EpisodeOfCare?_profile=https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisabilitySum&patient={{patientId}}",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Patient",
												"{{patientId}}",
												"EpisodeOfCare"
											],
											"query": [
												{
													"key": "_profile",
													"value": "https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisabilitySum"
												},
												{
													"key": "patient",
													"value": "{{patientId}}"
												},
												{
													"key": "status",
													"value": "active",
													"disabled": true
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "проверка получения  Случая ВН",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"protocolProfileBehavior": {
										"disableBodyPruning": true
									},
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Accept",
												"value": "text/html",
												"type": "text"
											}
										],
										"body": {
											"mode": "raw",
											"raw": ""
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/EpisodeOfCare/{{EpisodeOfCareVN}}",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Patient",
												"{{patientId}}",
												"EpisodeOfCare",
												"{{EpisodeOfCareVN}}"
											],
											"query": [
												{
													"key": "status",
													"value": "active",
													"disabled": true
												}
											]
										}
									},
									"response": []
								}
							]
						},
						{
							"name": "1.2.2 закрытие случая ВН по уходу за ребенком",
							"item": [
								{
									"name": "импорт Сведений о ВН из МИС в ЦИСЗ",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"pm.test(\"Валидный бандл должен отработать со статусом 202\", function () {\r",
													"    pm.response.to.have.status(202);\r",
													"});\r",
													"\r",
													"var jsonData = pm.response.json();\r",
													"let bundleId = jsonData.parameter.find(obj => obj.name === \"ResourceId\").valueString;\r",
													"let statusReference = jsonData.parameter.find(obj => obj.name === \"OperationStatusReference\");\r",
													"\r",
													"console.log(statusReference.valueReference.reference);\r",
													"\r",
													"pm.collectionVariables.set(\"bundleId\", bundleId);\r",
													"pm.collectionVariables.set(\"StatusUrl\", statusReference.valueReference.reference);\r",
													""
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"request": {
										"method": "POST",
										"header": [
											{
												"key": "X-Fhir-By-Version",
												"value": "active",
												"type": "text"
											}
										],
										"body": {
											"mode": "raw",
											"raw": "{\r\n    \"resourceType\": \"Bundle\",\r\n    \"id\": \"BundleFull\",\r\n    \"meta\": {\r\n        \"profile\": [\r\n            \"https://fhir.by/AbstractArea/StructureDefinition/Bundle/MedicationDocument\"\r\n        ]\r\n    },\r\n    \"identifier\": {\r\n        \"system\": \"https://fhir.by/ValueSet/urn:ietf:rfc:3986\",\r\n        \"value\": \"{{$guid}}\"\r\n    },\r\n    \"type\": \"document\",\r\n    \"timestamp\": \"2024-04-07T11:12:21Z\",\r\n    \"entry\": [\r\n        {\r\n            \"fullUrl\": \"Composition/CompositionFullBundle\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Composition\",\r\n                \"id\": \"{{$guid}}\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/CompDocument\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"type\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/CompositionType\",\r\n                            \"code\": \"general\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": [\r\n                    {\r\n                        \"reference\": \"Patient/Patient2\",\r\n                        \"display\": \"Семёнова А.П.\"\r\n                    }\r\n                ],\r\n                \"date\": \"2024-07-22T11:12:21Z\",\r\n                \"author\": [\r\n                    {\r\n                        \"reference\": \"Practitioner/{{PractitionerId}}\",\r\n                        \"display\": \"Филатов И.А.\"\r\n                    }\r\n                ],\r\n                \"title\": \"Discharge Summary\",\r\n                \"custodian\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Patient/Patient2\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Patient\",\r\n                \"id\": \"Patient2\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/PatientWithIdentificationNumber\"\r\n                    ]\r\n                },\r\n                \"identifier\": [\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"INP\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7551729A009PB1\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedString\",\r\n                                        \"valueString\": \"Центральным РУВД г Минска, 21.08.2021\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedDate\",\r\n                                        \"valueDate\": \"2021-08-21\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedCode\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/OCAM\",\r\n                                                    \"code\": \"106\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PassportIssued\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"Passport-RB\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"MP0001311\"\r\n                    }\r\n                ],\r\n                \"active\": true,\r\n                \"name\": [\r\n                    {\r\n                        \"family\": \"Петров\",\r\n                        \"given\": [\r\n                            \"Олег\",\r\n                            \"Петрович\"\r\n                        ],\r\n                        \"period\": {\r\n                            \"start\": \"2024-01-31\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"telecom\": [\r\n                    {\r\n                        \"system\": \"phone\",\r\n                        \"value\": \"89001234568\",\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientTelecomPurpose\",\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientAccountPoint\",\r\n                                        \"valueBoolean\": true\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientConsentForNotification\",\r\n                                        \"valueBoolean\": true\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"system\": \"email\",\r\n                        \"value\": \"tsv1@agsr.by\",\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientTelecomPurpose\",\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientAccountPoint\",\r\n                                        \"valueBoolean\": false\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientConsentForNotification\",\r\n                                        \"valueBoolean\": true\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"gender\": \"male\",\r\n                \"birthDate\": \"2015-01-31\",\r\n                \"deceasedBoolean\": false,\r\n                \"address\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"code\": \"1125824837\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 11\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"home\",\r\n                        \"postalCode\": \"212011\",\r\n                        \"text\": \"Беларусь, Могилевская область, г.Могилев, Переулок Гоголя, д.19 кв. 11, 212011\"\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n\r\n        {\r\n            \"fullUrl\": \"RelatedPerson/ExampleRelatedPersonCorolevaIV\",\r\n            \"resource\": {\r\n                \"resourceType\": \"RelatedPerson\",\r\n                \"id\": \"ExampleRelatedPersonCorolevaIV\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/RelatedPersonPermanentBy\"\r\n                    ]\r\n                },\r\n                \"identifier\": [\r\n                    {\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"INP\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7551000A009PB5\",\r\n                        \"period\": {\r\n                            \"start\": \"2024-01-31\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedString\",\r\n                                        \"valueString\": \"Центральным РУВД г Минска, 11.08.2021\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedDate\",\r\n                                        \"valueDate\": \"2021-08-11\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedCode\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/OCAM\",\r\n                                                    \"code\": \"106\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PassportIssued\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"Passport-RB\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"MP1234579\"\r\n                    }\r\n                ],\r\n                \"active\": true,\r\n                \"patient\": {\r\n                    \"reference\": \"Patient/Patient2\"\r\n                },\r\n                \"relationship\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/RelatedPersonType\",\r\n                                \"code\": \"mother\",\r\n                                \"display\": \"мать\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"name\": [\r\n                    {\r\n                        \"family\": \"Петрова\",\r\n                        \"given\": [\r\n                            \"Ирина\",\r\n                            \"Владимировна\"\r\n                        ]\r\n                    }\r\n                ],\r\n                \"telecom\": [\r\n                    {\r\n                        \"system\": \"phone\",\r\n                        \"value\": \"+375172000669\",\r\n                        \"period\": {\r\n                            \"start\": \"2024-01-31\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"gender\": \"female\",\r\n                \"birthDate\": \"1992-10-08\",\r\n                \"address\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"code\": \"72609920778\",\r\n                                            \"display\": \"Переулок Снежный\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 11\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"home\",\r\n                        \"text\": \"Могилевская область, г.Могилев, Переулок Гоголя, д.19\",\r\n                        \"postalCode\": \"212011\"\r\n                    }\r\n                ],\r\n                \"period\": {\r\n                    \"start\": \"2024-01-31\",\r\n                    \"end\": \"2025-09-30\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Condition/DiagnosisrFullBundle\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Condition\",\r\n                \"id\": \"DiagnosisrFullBundle\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/FinalDiagnosis\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/KindOfDiagnosis\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/KindOfDiagnosisCode\",\r\n                                    \"code\": \"Final\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/AssertedDate\",\r\n                        \"valueDateTime\": \"2024-04-07\"\r\n                    }\r\n                ],\r\n                \"clinicalStatus\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"http://terminology.hl7.org/CodeSystem/condition-clinical\",\r\n                            \"code\": \"active\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/InternClassificDiseases10\",\r\n                            \"code\": \"J03\",\r\n                            \"display\": \"J03 - Острый тонзиллит\"\r\n                        }\r\n                    ],\r\n                    \"text\": \"Острый двусторонний тонзиллит\"\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/Patient2\",\r\n                    \"display\": \"Петров О.П.\"\r\n                },\r\n                \"onsetDateTime\": \"2024-04-07\",\r\n                \"recordedDate\": \"2024-04-07\",\r\n                \"participant\": [\r\n                    {\r\n                        \"actor\": {\r\n                            \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\",\r\n                            \"display\": \"Иванов В.Э.\"\r\n                        }\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Encounter/EncounterBundleForTest\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Encounter\",\r\n                \"id\": \"EncounterBundleForTest\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/EncounterGeneral\"\r\n                    ]\r\n                },\r\n                \"status\": \"completed\",\r\n                \"class\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/VSTermsOfService\",\r\n                                \"code\": \"1\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"priority\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/HealthCareForms\",\r\n                            \"code\": \"planned\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"type\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/TypeOfHealthCare\",\r\n                                \"code\": \"primary\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/Patient2\"\r\n                },\r\n                \"serviceProvider\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"participant\": [\r\n                    {\r\n                        \"actor\": {\r\n                            \"reference\": \"Practitioner/{{PractitionerId}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"actualPeriod\": {\r\n                    \"start\": \"2024-02-07T11:12:21Z\",\r\n                    \"end\": \"2024-02-07T11:25:21Z\"\r\n                },\r\n                \"diagnosis\": [\r\n                    {\r\n                        \"condition\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"use\": [\r\n                            {\r\n                                \"coding\": [\r\n                                    {\r\n                                        \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                        \"code\": \"mainDiagnosis\"\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"EpisodeOfCare/ExampleTDCase4.1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"EpisodeOfCare\",\r\n                \"id\": \"ExampleTDCase4.1\",\r\n                \"meta\": {\r\n                    \"lastUpdated\": \"2023-03-02T10:30:00Z\",\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisability\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/ReceiverRelatedPerson\",\r\n                        \"valueReference\": {\r\n                            \"reference\": \"RelatedPerson/ExampleRelatedPersonCorolevaIV\",\r\n                            \"display\": \"Петрова Ирина Владимировна, дата рождения 08.10.1992 г.р.\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDisabilityKindDisability\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityKindDisability\",\r\n                                    \"code\": \"03\",\r\n                                    \"display\": \"в связи с уходом за больным ребенком до 14 лет \"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDiasabilityEncounterAction\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/SeakLeavePeriod\",\r\n                                    \"code\": \"close\",\r\n                                    \"display\": \"Закрытие случая временной нетрудоспособности\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDisabilityPeriodPaid\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityPeriodPaidCode\",\r\n                                    \"code\": \"1\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDisabilityRegime\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityRegime\",\r\n                                    \"code\": \"1\",\r\n                                    \"display\": \"амбулаторный\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/GoToWork\",\r\n                        \"valueDate\":  \"2025-05-16\"\r\n                        \r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TDCaseClosing\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TDCaseClosing\",\r\n                                    \"code\": \"1\",\r\n                                    \"display\": \"Трудоспособен\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    }\r\n                ],\r\n                \"identifier\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/TemporaryDiasabilityExpirationDate\",\r\n                                \"valueDate\": \"2025-05-01\"\r\n                            }\r\n                        ],\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityDocType\",\r\n                                    \"code\": \"tdsheet\",\r\n                                    \"display\": \"Листок временной нетрудоспособности\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"AB7777777\",\r\n                        \"period\": {\r\n                            \"start\": \"2025-05-01\",\r\n                            \"end\": \"2025-05-15\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"status\": \"finished\",\r\n                \"reason\": [\r\n                    {\r\n                        \"use\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityReasonOfDisability\",\r\n                                    \"code\": \"80\",\r\n                                    \"display\": \"Уход за ребенком в возрасте до 14 лет\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    }\r\n                ],\r\n                \"patient\": {\r\n                    \"reference\": \"Patient/Patient2\",\r\n                    \"display\": \"Петров О.П.\"\r\n                },\r\n                \"managingOrganization\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },                \r\n                \"careManager\": {\r\n                    \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\",\r\n                    \"display\": \"Лечащий врач Иванов\"\r\n                }\r\n            }\r\n        }\r\n    ]\r\n}",
											"options": {
												"raw": {
													"language": "json"
												}
											}
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/$import",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Bundle",
												"$import"
											]
										}
									},
									"response": []
								},
								{
									"name": "получение статуса импорта пакета медицинских данных",
									"request": {
										"method": "GET",
										"header": [],
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/{{bundleId}}/$status",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Bundle",
												"{{bundleId}}",
												"$status"
											]
										}
									},
									"response": []
								},
								{
									"name": "проверка сохранения Сведений о ВН в ЦИСЗ",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = pm.response.json();\r",
													"let resourceId = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.id;\r",
													"\r",
													"pm.collectionVariables.set(\"tdBabyCareClose\", resourceId);\r",
													"\r",
													"console.log(resourceId)\r",
													""
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"protocolProfileBehavior": {
										"disableBodyPruning": true
									},
									"request": {
										"method": "GET",
										"header": [],
										"body": {
											"mode": "raw",
											"raw": ""
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/EpisodeOfCare?_profile=https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisability&patient={{patientId}}&status=finished",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Patient",
												"{{patientId}}",
												"EpisodeOfCare"
											],
											"query": [
												{
													"key": "_profile",
													"value": "https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisability"
												},
												{
													"key": "patient",
													"value": "{{patientId}}"
												},
												{
													"key": "status",
													"value": "finished"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "проверка сохранения изменений в Случай ВН",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = pm.response.json();\r",
													"let EpisodeOfCareVN = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.id;\r",
													"\r",
													"pm.collectionVariables.set(\"EpisodeOfCareVN\", EpisodeOfCareVN);\r",
													"console.log(EpisodeOfCareVN)"
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"protocolProfileBehavior": {
										"disableBodyPruning": true
									},
									"request": {
										"method": "GET",
										"header": [],
										"body": {
											"mode": "raw",
											"raw": ""
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/EpisodeOfCare?_profile=https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisabilitySum&patient={{patientId}}",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Patient",
												"{{patientId}}",
												"EpisodeOfCare"
											],
											"query": [
												{
													"key": "_profile",
													"value": "https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisabilitySum"
												},
												{
													"key": "patient",
													"value": "{{patientId}}"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "проверка получения  Случая ВН",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"protocolProfileBehavior": {
										"disableBodyPruning": true
									},
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Accept",
												"value": "text/html",
												"type": "text"
											}
										],
										"body": {
											"mode": "raw",
											"raw": ""
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/EpisodeOfCare/{{EpisodeOfCareVN}}",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Patient",
												"{{patientId}}",
												"EpisodeOfCare",
												"{{EpisodeOfCareVN}}"
											],
											"query": [
												{
													"key": "status",
													"value": "active",
													"disabled": true
												}
											]
										}
									},
									"response": []
								}
							]
						}
					]
				}
			]
		},
		{
			"name": "Case 2. Оказание медицинской помощи в стационарных условиях",
			"item": [
				{
					"name": "CASE 2.1 Оформление бумажного листка нетрудоспособности по общему заболеванию",
					"item": [
						{
							"name": "предварительные условия",
							"item": [
								{
									"name": "импорт пакета медицинской информации",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"pm.test(\"Валидный бандл должен отработать со статусом 202\", function () {\r",
													"    pm.response.to.have.status(202);\r",
													"});\r",
													"\r",
													"var jsonData = pm.response.json();\r",
													"let bundleId = jsonData.parameter.find(obj => obj.name === \"ResourceId\").valueString;\r",
													"let statusReference = jsonData.parameter.find(obj => obj.name === \"OperationStatusReference\");\r",
													"\r",
													"console.log(statusReference.valueReference.reference);\r",
													"\r",
													"pm.collectionVariables.set(\"bundleId\", bundleId);\r",
													"pm.collectionVariables.set(\"StatusUrl\", statusReference.valueReference.reference);\r",
													""
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										},
										{
											"listen": "prerequest",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"request": {
										"method": "POST",
										"header": [
											{
												"key": "X-Fhir-By-Version",
												"value": "active",
												"type": "text"
											}
										],
										"body": {
											"mode": "raw",
											"raw": "{\r\n    \"resourceType\": \"Bundle\",\r\n    \"id\": \"ExampleBundleForDemo\",\r\n    \"meta\": {\r\n        \"profile\": [\r\n            \"https://fhir.by/AbstractArea/StructureDefinition/Bundle/MedicationDocument\"\r\n        ]\r\n    },\r\n    \"identifier\": {\r\n        \"system\": \"https://fhir.by/ValueSet/urn:ietf:rfc:3986\",\r\n        \"value\": \"{{$guid}}\"\r\n    },\r\n    \"type\": \"document\",\r\n    \"timestamp\": \"2024-07-22T11:12:21Z\",\r\n    \"entry\": [\r\n        {\r\n            \"fullUrl\": \"Composition/CompDocumentForDemo\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Composition\",\r\n                \"id\": \"{{$guid}}\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/CompDocument\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"type\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/CompositionType\",\r\n                            \"code\": \"general\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": [\r\n                    {\r\n                        \"reference\": \"Patient/Patient1\",\r\n                        \"display\": \"Ивов В.В.\"\r\n                    }\r\n                ],\r\n                \"date\": \"2024-07-22T11:12:21Z\",\r\n                \"author\": [\r\n                    {\r\n                        \"reference\": \"Practitioner/{{PractitionerId}}\",\r\n                        \"display\": \"Филатов И.А.\"\r\n                    }\r\n                ],\r\n                \"title\": \"Discharge Summary\",\r\n                \"custodian\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Patient/Patient1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Patient\",\r\n                \"id\": \"Patient1\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/PatientWithIdentificationNumber\"\r\n                    ]\r\n                },\r\n                \"identifier\": [\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"INP\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7551704A009PB4\"\r\n                    },\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"IPA\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7551704A009PB4\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedString\",\r\n                                        \"valueString\": \"Центральным РУВД г Минска, 21.08.2021\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedDate\",\r\n                                        \"valueDate\": \"2021-08-21\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedCode\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/OCAM\",\r\n                                                    \"code\": \"106\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PassportIssued\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"Passport-RB\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"MP0000711\"\r\n                    }\r\n                ],\r\n                \"active\": true,\r\n                \"name\": [\r\n                    {\r\n                        \"family\": \"Ивов\",\r\n                        \"given\": [\r\n                            \"Василий\",\r\n                            \"Васильевич\"\r\n                        ],\r\n                        \"period\": {\r\n                            \"start\": \"2024-01-31\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"telecom\": [\r\n                    {\r\n                        \"system\": \"phone\",\r\n                        \"value\": \"89001234567\",\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientTelecomPurpose\",\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientAccountPoint\",\r\n                                        \"valueBoolean\": false\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientConsentForNotification\",\r\n                                        \"valueBoolean\": true\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"system\": \"phone\",\r\n                        \"value\": \"89001234568\",\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientTelecomPurpose\",\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientAccountPoint\",\r\n                                        \"valueBoolean\": true\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientConsentForNotification\",\r\n                                        \"valueBoolean\": true\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"system\": \"phone\",\r\n                        \"value\": \"89001235789\",\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientTelecomPurpose\",\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientAccountPoint\",\r\n                                        \"valueBoolean\": false\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientConsentForNotification\",\r\n                                        \"valueBoolean\": true\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    },                    \r\n                    {\r\n                        \"system\": \"email\",\r\n                        \"value\": \"tsv1@agsr.by\",\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientTelecomPurpose\",\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientAccountPoint\",\r\n                                        \"valueBoolean\": false\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientConsentForNotification\",\r\n                                        \"valueBoolean\": true\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"gender\": \"male\",\r\n                \"birthDate\": \"1989-01-31\",\r\n                \"deceasedBoolean\": false,\r\n                \"address\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"code\": \"1125824837\"                                            \r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 11\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"home\",\r\n                        \"postalCode\": \"212011\",\r\n                        \"text\": \"Беларусь, Могилевская область, г.Могилев, Переулок Гоголя, д.19 кв. 11, 212011\"\r\n                    }\r\n                ]\r\n            }\r\n        }\r\n    ]\r\n}",
											"options": {
												"raw": {
													"language": "json"
												}
											}
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/$import",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Bundle",
												"$import"
											]
										}
									},
									"response": []
								},
								{
									"name": "получение статуса импорта пакета медицинских данных",
									"request": {
										"method": "GET",
										"header": [],
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/{{bundleId}}/$status",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Bundle",
												"{{bundleId}}",
												"$status"
											]
										}
									},
									"response": []
								},
								{
									"name": "поиск пациента по идентификационному номеру",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = pm.response.json();\r",
													"let patientId = jsonData.entry.find(obj => obj.resource.resourceType === \"Patient\").resource.id;\r",
													"\r",
													"pm.collectionVariables.set(\"patientId\", patientId);\r",
													"console.log(patientId)\r",
													""
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"protocolProfileBehavior": {
										"disableBodyPruning": true
									},
									"request": {
										"method": "GET",
										"header": [],
										"body": {
											"mode": "raw",
											"raw": "",
											"options": {
												"raw": {
													"language": "json"
												}
											}
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient?identifier=7551704A009PB4",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Patient"
											],
											"query": [
												{
													"key": "identifier",
													"value": "7551704A009PB4"
												}
											]
										}
									},
									"response": []
								}
							]
						},
						{
							"name": "Начало случая ВН в условиях стационара (бумажный листок нетрудоспособности не оформляется)",
							"item": [
								{
									"name": "импорт Сведений о ВН из МИС в ЦИСЗ",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"pm.test(\"Валидный бандл должен отработать со статусом 202\", function () {\r",
													"    pm.response.to.have.status(202);\r",
													"});\r",
													"\r",
													"var jsonData = pm.response.json();\r",
													"let bundleId = jsonData.parameter.find(obj => obj.name === \"ResourceId\").valueString;\r",
													"let statusReference = jsonData.parameter.find(obj => obj.name === \"OperationStatusReference\");\r",
													"\r",
													"console.log(statusReference.valueReference.reference);\r",
													"\r",
													"pm.collectionVariables.set(\"bundleId\", bundleId);\r",
													"pm.collectionVariables.set(\"StatusUrl\", statusReference.valueReference.reference);\r",
													""
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"request": {
										"method": "POST",
										"header": [
											{
												"key": "X-Fhir-By-Version",
												"value": "active",
												"type": "text"
											}
										],
										"body": {
											"mode": "raw",
											"raw": "{\r\n    \"resourceType\": \"Bundle\",\r\n    \"id\": \"BundleFull\",\r\n    \"meta\": {\r\n        \"profile\": [\r\n            \"https://fhir.by/AbstractArea/StructureDefinition/Bundle/MedicationDocument\"\r\n        ]\r\n    },\r\n    \"identifier\": {\r\n        \"system\": \"https://fhir.by/ValueSet/urn:ietf:rfc:3986\",\r\n        \"value\": \"{{$guid}}\"\r\n    },\r\n    \"type\": \"document\",\r\n    \"timestamp\": \"2024-04-07T11:12:21Z\",\r\n    \"entry\": [\r\n        {\r\n            \"fullUrl\": \"Composition/CompositionFullBundle\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Composition\",\r\n                \"id\": \"{{$guid}}\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/CompDocument\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"type\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/CompositionType\",\r\n                            \"code\": \"general\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": [\r\n                    {\r\n                        \"reference\": \"Patient/Patient1\",\r\n                        \"display\": \"Ивов В.В.\"\r\n                    }\r\n                ],\r\n                \"date\": \"2024-07-22T11:12:21Z\",\r\n                \"author\": [\r\n                    {\r\n                        \"reference\": \"Practitioner/{{PractitionerId}}\",\r\n                        \"display\": \"Филатов И.А.\"\r\n                    }\r\n                ],\r\n                \"title\": \"Discharge Summary\",\r\n                \"custodian\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Patient/Patient1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Patient\",\r\n                \"id\": \"Patient1\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/PatientWithIdentificationNumber\"\r\n                    ]\r\n                },\r\n                \"identifier\": [\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"INP\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7551704A009PB4\"\r\n                    },\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"IPA\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7551704A009PB4\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedString\",\r\n                                        \"valueString\": \"Центральным РУВД г Минска, 21.08.2021\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedDate\",\r\n                                        \"valueDate\": \"2021-08-21\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedCode\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/OCAM\",\r\n                                                    \"code\": \"106\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PassportIssued\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"Passport-RB\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"MP0000711\"\r\n                    }\r\n                ],\r\n                \"active\": true,\r\n                \"name\": [\r\n                    {\r\n                        \"family\": \"Васильев\",\r\n                        \"given\": [\r\n                            \"Василий\",\r\n                            \"Васильевич\"\r\n                        ],\r\n                        \"period\": {\r\n                            \"start\": \"2024-01-31\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"telecom\": [\r\n                    {\r\n                        \"system\": \"phone\",\r\n                        \"value\": \"89001234568\",\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientTelecomPurpose\",\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientAccountPoint\",\r\n                                        \"valueBoolean\": true\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientConsentForNotification\",\r\n                                        \"valueBoolean\": true\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"system\": \"email\",\r\n                        \"value\": \"tsv1@agsr.by\",\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientTelecomPurpose\",\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientAccountPoint\",\r\n                                        \"valueBoolean\": false\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientConsentForNotification\",\r\n                                        \"valueBoolean\": true\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"gender\": \"male\",\r\n                \"birthDate\": \"1989-01-31\",\r\n                \"deceasedBoolean\": false,\r\n                \"address\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"code\": \"1125824837\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 11\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"home\",\r\n                        \"postalCode\": \"212011\",\r\n                        \"text\": \"Беларусь, Могилевская область, г.Могилев, Переулок Гоголя, д.19 кв. 11, 212011\"\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Condition/DiagnosisrFullBundle\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Condition\",\r\n                \"id\": \"DiagnosisrFullBundle\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/FinalDiagnosis\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/KindOfDiagnosis\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/KindOfDiagnosisCode\",\r\n                                    \"code\": \"Final\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/AssertedDate\",\r\n                        \"valueDateTime\": \"2024-04-07\"\r\n                    }\r\n                ],\r\n                \"clinicalStatus\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"http://terminology.hl7.org/CodeSystem/condition-clinical\",\r\n                            \"code\": \"active\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/InternClassificDiseases10\",\r\n                            \"code\": \"K35\",\r\n                            \"display\": \"K35 - Острый аппендицит\"\r\n                        }\r\n                    ],\r\n                    \"text\": \"Острый аппендицит\"\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/Patient1\",\r\n                    \"display\": \"Васильев Василий Васильевич\"\r\n                },\r\n                \"onsetDateTime\": \"2024-04-07\",\r\n                \"recordedDate\": \"2024-04-07\",\r\n                \"participant\": [\r\n                    {\r\n                        \"actor\": {\r\n                            \"reference\": \"PractitionerRole/{{PractitionerRoleMREC}}\",\r\n                            \"display\": \"Филатов И.А.\"\r\n                        }\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Encounter/EncounterBundleForTest\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Encounter\",\r\n                \"id\": \"EncounterBundleForTest\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/EncounterGeneral\"\r\n                    ]\r\n                },\r\n                \"status\": \"completed\",\r\n                \"class\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/VSTermsOfService\",\r\n                                \"code\": \"2\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"priority\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/HealthCareForms\",\r\n                            \"code\": \"emergency\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"type\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/TypeOfHealthCare\",\r\n                                \"code\": \"special\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/Patient1\"\r\n                },\r\n                \"serviceProvider\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"participant\": [\r\n                    {\r\n                        \"actor\": {\r\n                            \"reference\": \"Practitioner/{{PractitionerId}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"actualPeriod\": {\r\n                    \"start\": \"2024-02-07T11:12:21Z\",\r\n                    \"end\": \"2024-02-07T11:25:21Z\"\r\n                },\r\n                \"diagnosis\": [\r\n                    {\r\n                        \"condition\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"use\": [\r\n                            {\r\n                                \"coding\": [\r\n                                    {\r\n                                        \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                        \"code\": \"mainDiagnosis\"\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"EpisodeOfCare/ExampleHospitalisationPlanStart\",\r\n            \"resource\": {\r\n                \"resourceType\": \"EpisodeOfCare\",\r\n                \"id\": \"ExampleHospitalisationPlanStart\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/Hospitalisation\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/LocationUnitOfOrganization\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"Location/{{LocationId}}\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/TreatmentPeriod\",\r\n                                \"valuePeriod\": {\r\n                                    \"start\": \"2025-04-01\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/TreatingPractitioner\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/HeadOfUnit\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/BedProfiles\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/BedProfile\",\r\n                                            \"code\": \"short-surgical-adult\",\r\n                                            \"display\": \"хирургические для взрослых\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TreatmentInUnit\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/HospitalisationPaidType\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/HospitalisationPaidType\",\r\n                                            \"code\": \"optional-insurance\",\r\n                                            \"display\": \"добровольное медицинское страхование\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/InsurancePolicyNumber\",\r\n                                        \"valueString\": \"AO39198215\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/DateIssueInsurancePolicy\",\r\n                                        \"valueDate\": \"2023-09-01\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PeriodTemporaryInsurancePolicy\",\r\n                                        \"valuePeriod\": {\r\n                                            \"start\": \"2023-09-01\",\r\n                                            \"end\": \"2024-09-02\"\r\n                                        }\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/InsuranceOrganization\",\r\n                                        \"valueString\": \"АГСРСтрах\"\r\n                                    }\r\n                                ],\r\n                                \"url\": \"https://fhir.by/StructureDefinition/HealthInsurance\"\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/HospitalisationPaid\"\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/EmergencyHospitalisationTerm\",\r\n                        \"valuePositiveInt\": 2\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/DiagnosisOfSendingOrganisation\",\r\n                        \"valueReference\": {\r\n                            \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/SequenceNumbeHospitalisation\",\r\n                        \"valuePositiveInt\": 1\r\n                    }\r\n                ],\r\n                \"identifier\": [\r\n                    {\r\n                        \"value\": \"123/5\",\r\n                        \"assigner\": {\r\n                            \"reference\": \"Organization/{{OrganizationId}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"status\": \"active\",\r\n                \"type\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/TypeOfHealthCare\",\r\n                                \"code\": \"special\",\r\n                                \"display\": \"специализированная\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"reason\": [\r\n                    {\r\n                        \"use\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/HospitalisationReasonUse\",\r\n                                    \"code\": \"2\",\r\n                                    \"display\": \"Экстренная госпитализация\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": [\r\n                            {\r\n                                \"concept\": {\r\n                                    \"text\": \"для экстренного оперативного лечения\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"diagnosis\": [\r\n                    {\r\n                        \"condition\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/TypeOfDiagnosis\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                                    \"code\": \"mainDiagnosis\",\r\n                                                    \"display\": \"Основной диагноз\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/TypeOfDiagnosis\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                                    \"code\": \"additionalDiagnosis\",\r\n                                                    \"display\": \"Сопутствующий диагноз\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"use\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/KindOfDiagnosisCode\",\r\n                                    \"code\": \"Preliminary\",\r\n                                    \"display\": \"Предварительный диагноз\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    }\r\n                ],\r\n                \"patient\": {\r\n                    \"reference\": \"Patient/Patient1\"\r\n                },\r\n                \"managingOrganization\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"period\": {\r\n                    \"start\": \"2025-04-01\"\r\n                },\r\n                \"careManager\": {\r\n                    \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\"\r\n                }\r\n            }\r\n        }\r\n    ]\r\n}",
											"options": {
												"raw": {
													"language": "json"
												}
											}
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/$import",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Bundle",
												"$import"
											]
										}
									},
									"response": []
								},
								{
									"name": "получение статуса импорта пакета медицинских данных",
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "X-Fhir-By-Version",
												"value": "0.3.4768",
												"type": "text",
												"disabled": true
											}
										],
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/{{bundleId}}/$status",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Bundle",
												"{{bundleId}}",
												"$status"
											]
										}
									},
									"response": []
								},
								{
									"name": "Проверка сохранения ресурсов госпитализации",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = pm.response.json();\r",
													"let episodOfCareId = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.id;\r",
													"\r",
													"pm.collectionVariables.set(\"episodOfCareId\", episodOfCareId);\r",
													"console.log(episodOfCareId)\r",
													""
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"protocolProfileBehavior": {
										"disableBodyPruning": true
									},
									"request": {
										"method": "GET",
										"header": [],
										"body": {
											"mode": "raw",
											"raw": ""
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/EpisodeOfCare?_profile=https://fhir.by/StructureDefinition/Hospitalisation&patient={{patientId}}&_sort=-_lastUpdated",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Patient",
												"{{patientId}}",
												"EpisodeOfCare"
											],
											"query": [
												{
													"key": "_profile",
													"value": "https://fhir.by/StructureDefinition/Hospitalisation"
												},
												{
													"key": "patient",
													"value": "{{patientId}}"
												},
												{
													"key": "_sort",
													"value": "-_lastUpdated"
												}
											]
										}
									},
									"response": []
								}
							]
						},
						{
							"name": "CASE 2.1.1: Оформление промежуточного бумажного листка нетрудоспособности для предоставления на оплату",
							"item": [
								{
									"name": "импорт Сведений о ВН из МИС в ЦИСЗ",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"pm.test(\"Валидный бандл должен отработать со статусом 202\", function () {\r",
													"    pm.response.to.have.status(202);\r",
													"});\r",
													"\r",
													"var jsonData = pm.response.json();\r",
													"let bundleId = jsonData.parameter.find(obj => obj.name === \"ResourceId\").valueString;\r",
													"let statusReference = jsonData.parameter.find(obj => obj.name === \"OperationStatusReference\");\r",
													"\r",
													"console.log(statusReference.valueReference.reference);\r",
													"\r",
													"pm.collectionVariables.set(\"bundleId\", bundleId);\r",
													"pm.collectionVariables.set(\"StatusUrl\", statusReference.valueReference.reference);\r",
													""
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"request": {
										"method": "POST",
										"header": [
											{
												"key": "X-Fhir-By-Version",
												"value": "active",
												"type": "text"
											}
										],
										"body": {
											"mode": "raw",
											"raw": "{\r\n    \"resourceType\": \"Bundle\",\r\n    \"id\": \"BundleFull\",\r\n    \"meta\": {\r\n        \"profile\": [\r\n            \"https://fhir.by/AbstractArea/StructureDefinition/Bundle/MedicationDocument\"\r\n        ]\r\n    },\r\n    \"identifier\": {\r\n        \"system\": \"https://fhir.by/ValueSet/urn:ietf:rfc:3986\",\r\n        \"value\": \"{{$guid}}\"\r\n    },\r\n    \"type\": \"document\",\r\n    \"timestamp\": \"2024-04-07T11:12:21Z\",\r\n    \"entry\": [\r\n        {\r\n            \"fullUrl\": \"Composition/CompositionFullBundle\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Composition\",\r\n                \"id\": \"{{$guid}}\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/CompDocument\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"type\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/CompositionType\",\r\n                            \"code\": \"general\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": [\r\n                    {\r\n                        \"reference\": \"Patient/Patient1\"\r\n                    }\r\n                ],\r\n                \"date\": \"2024-07-22T11:12:21Z\",\r\n                \"author\": [\r\n                    {\r\n                        \"reference\": \"Practitioner/{{PractitionerId}}\",\r\n                        \"display\": \"Иванов В.Э.\"\r\n                    }\r\n                ],\r\n                \"title\": \"Discharge Summary\",\r\n                \"custodian\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Patient/Patient1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Patient\",\r\n                \"id\": \"Patient1\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/PatientWithIdentificationNumber\"\r\n                    ]\r\n                },\r\n                \"identifier\": [\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"INP\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7551704A009PB4\"\r\n                    },\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"IPA\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7551704A009PB4\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedString\",\r\n                                        \"valueString\": \"Центральным РУВД г Минска, 21.08.2021\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedDate\",\r\n                                        \"valueDate\": \"2021-08-21\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedCode\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/OCAM\",\r\n                                                    \"code\": \"106\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PassportIssued\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"Passport-RB\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"MP0000711\"\r\n                    }\r\n                ],\r\n                \"active\": true,\r\n                \"name\": [\r\n                    {\r\n                        \"family\": \"Васильев\",\r\n                        \"given\": [\r\n                            \"Василий\",\r\n                            \"Васильевич\"\r\n                        ],\r\n                        \"period\": {\r\n                            \"start\": \"2024-01-31\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"telecom\": [\r\n                    {\r\n                        \"system\": \"phone\",\r\n                        \"value\": \"89001234568\",\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientTelecomPurpose\",\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientAccountPoint\",\r\n                                        \"valueBoolean\": true\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientConsentForNotification\",\r\n                                        \"valueBoolean\": true\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"system\": \"email\",\r\n                        \"value\": \"tsv1@agsr.by\",\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientTelecomPurpose\",\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientAccountPoint\",\r\n                                        \"valueBoolean\": false\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientConsentForNotification\",\r\n                                        \"valueBoolean\": true\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"gender\": \"male\",\r\n                \"birthDate\": \"1989-01-31\",\r\n                \"deceasedBoolean\": false,\r\n                \"address\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"code\": \"1125824837\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 11\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"home\",\r\n                        \"postalCode\": \"212011\",\r\n                        \"text\": \"Беларусь, Могилевская область, г.Могилев, Переулок Гоголя, д.19 кв. 11, 212011\"\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Condition/DiagnosisrFullBundle\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Condition\",\r\n                \"id\": \"DiagnosisrFullBundle\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/FinalDiagnosis\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/KindOfDiagnosis\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/KindOfDiagnosisCode\",\r\n                                    \"code\": \"Final\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/AssertedDate\",\r\n                        \"valueDateTime\": \"2024-04-07\"\r\n                    }\r\n                ],\r\n                \"clinicalStatus\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"http://terminology.hl7.org/CodeSystem/condition-clinical\",\r\n                            \"code\": \"active\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/InternClassificDiseases10\",\r\n                            \"code\": \"K35\",\r\n                            \"display\": \"K35 - Острый аппендицит\"\r\n                        }\r\n                    ],\r\n                    \"text\": \"Острый аппендицит\"\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/Patient1\",\r\n                    \"display\": \"Васильев Василий Васильевич\"\r\n                },\r\n                \"onsetDateTime\": \"2024-04-07\",\r\n                \"recordedDate\": \"2024-04-07\",\r\n                \"participant\": [\r\n                    {\r\n                        \"actor\": {\r\n                            \"reference\": \"PractitionerRole/{{PractitionerRoleMREC}}\",\r\n                            \"display\": \"Филатов И.А.\"\r\n                        }\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Encounter/EncounterBundleForTest\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Encounter\",\r\n                \"id\": \"EncounterBundleForTest\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/EncounterGeneral\"\r\n                    ]\r\n                },\r\n                \"status\": \"completed\",\r\n                \"class\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/VSTermsOfService\",\r\n                                \"code\": \"2\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"priority\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/HealthCareForms\",\r\n                            \"code\": \"emergency\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"type\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/TypeOfHealthCare\",\r\n                                \"code\": \"special\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/Patient1\"\r\n                },\r\n                \"serviceProvider\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"participant\": [\r\n                    {\r\n                        \"actor\": {\r\n                            \"reference\": \"Practitioner/{{PractitionerId}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"actualPeriod\": {\r\n                    \"start\": \"2024-02-07T11:12:21Z\",\r\n                    \"end\": \"2024-02-07T11:25:21Z\"\r\n                },\r\n                \"diagnosis\": [\r\n                    {\r\n                        \"condition\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"use\": [\r\n                            {\r\n                                \"coding\": [\r\n                                    {\r\n                                        \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                        \"code\": \"mainDiagnosis\"\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Flag/FlagTDCase1.1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Flag\",\r\n                \"id\": \"FlagTDCase1.1\",\r\n                \"meta\": {\r\n                    \"lastUpdated\": \"2025-04-01T10:30:00Z\",\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/FlagTemporaryDisability\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/DateFlagReason\",\r\n                        \"valueDate\": \"2025-04-10\"\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/EpOCTDReference\",\r\n                        \"valueReference\": {\r\n                            \"reference\": \"EpisodeOfCare/ExampleTDCaseF1\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/RequestFromOrganization\",\r\n                        \"valueReference\": {\r\n                            \"reference\": \"Organization/{{OrganizationId}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"status\": \"active\",\r\n                \"code\": {\r\n                    \"extension\": [\r\n                        {\r\n                            \"url\": \"https://fhir.by/StructureDefinition/SpecialMarkPractitionerRole\",\r\n                            \"valueReference\": {\r\n                                \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\"\r\n                            }\r\n                        },\r\n                        {\r\n                            \"url\": \"https://fhir.by/StructureDefinition/SpecialMarkDate\",\r\n                            \"valueDate\": \"2025-04-08\"\r\n                        }\r\n                    ],\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/FlagSpecialMarks\",\r\n                            \"code\": \"disruption-leaving-hospital\",\r\n                            \"display\": \"нарушение режима: уход из стационара, дата (период)\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/Patient1\",\r\n                    \"display\": \"Васильев В.В.\"\r\n                },\r\n                \"author\": {\r\n                    \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\",\r\n                    \"display\": \"Лечащий врач Иванов\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"EpisodeOfCare/ExampleTDCaseF1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"EpisodeOfCare\",\r\n                \"id\": \"ExampleTDCaseF1\",\r\n                \"meta\": {\r\n                    \"lastUpdated\": \"2025-04-01T10:30:00Z\",\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisability\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDisabilityKindDisability\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityKindDisability\",\r\n                                    \"code\": \"01\",\r\n                                    \"display\": \"в связи с заболеванием общим\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/VKKReference\",\r\n                        \"valueReference\": {\r\n                            \"reference\": \"Encounter/EncounterBundleForTest\"\r\n                        }\r\n                    },\r\n                    {\r\n                            \"url\": \"https://fhir.by/StructureDefinition/TemporaryDiasabilityEncounterAction\",\r\n                            \"valueCodeableConcept\": {\r\n                                \"coding\": [\r\n                                    {\r\n                                        \"system\": \"https://fhir.by/ValueSet/SeakLeavePeriod\",\r\n                                        \"code\": \"open\",\r\n                                        \"display\": \"Открытие нового случая\"\r\n                                    }\r\n                                ]\r\n                            }\r\n                        },\r\n                        {\r\n                            \"url\": \"https://fhir.by/StructureDefinition/TemporaryDisabilityPeriodPaid\",\r\n                            \"valueCodeableConcept\": {\r\n                                \"coding\": [\r\n                                    {\r\n                                        \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityPeriodPaidCode\",\r\n                                        \"code\": \"1\"\r\n                                    }\r\n                                ]\r\n                            }\r\n                        },\r\n                        {\r\n                            \"url\": \"https://fhir.by/StructureDefinition/TemporaryDisabilityRegime\",\r\n                            \"valueCodeableConcept\": {\r\n                                \"coding\": [\r\n                                    {\r\n                                        \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityRegime\",\r\n                                        \"code\": \"2\",\r\n                                        \"display\": \"стационарный\"\r\n                                    }\r\n                                ]\r\n                            }\r\n                        },\r\n                        {\r\n                            \"url\": \"https://fhir.by/StructureDefinition/EncounterReference\",\r\n                            \"valueReference\": {\r\n                                \"reference\": \"Encounter/EncounterBundleForTest\"\r\n                            }\r\n                        },\r\n                        {\r\n                            \"url\": \"https://fhir.by/StructureDefinition/TDCaseClosing\",\r\n                            \"valueCodeableConcept\": {\r\n                                \"coding\": [\r\n                                    {\r\n                                        \"system\": \"https://fhir.by/ValueSet/TDCaseClosing\",\r\n                                        \"code\": \"0\",\r\n                                        \"display\": \"продолжает болеть\"\r\n                                    }\r\n                                ]\r\n                            }\r\n                        }\r\n                    ],\r\n                    \"status\": \"active\",\r\n                    \"diagnosis\": [\r\n                        {\r\n                            \"condition\": [\r\n                                {\r\n                                    \"reference\": {\r\n                                        \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                    }\r\n                                }\r\n                            ]\r\n                        }\r\n                    ],\r\n                    \"identifier\": [\r\n                        {\r\n                            \"extension\": [\r\n                                {\r\n                                    \"url\": \"https://fhir.by/StructureDefinition/TemporaryDiasabilityExpirationDate\",\r\n                                    \"valueDate\": \"2025-05-01\"\r\n                                }\r\n                            ],\r\n                            \"type\": {\r\n                                \"coding\": [\r\n                                    {\r\n                                        \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityDocType\",\r\n                                        \"code\": \"tdsheet\",\r\n                                        \"display\": \"Листок временной нетрудоспособности\"\r\n                                    }\r\n                                ]\r\n                            },\r\n                            \"value\": \"AB4777777\",\r\n                            \"period\": {\r\n                                \"start\": \"2025-04-01\",\r\n                                \"end\": \"2025-04-30\"\r\n                            }\r\n                        }\r\n                    ],\r\n                    \"patient\": {\r\n                        \"reference\": \"Patient/Patient1\"\r\n                    },\r\n                    \"managingOrganization\": {\r\n                        \"reference\": \"Organization/{{OrganizationMREC}}\"\r\n                    },\r\n                    \"period\": {\r\n                        \"start\": \"2025-04-01\",\r\n                        \"end\": \"2025-04-10\"\r\n                    },\r\n                    \"careManager\": {\r\n                        \"reference\": \"PractitionerRole/{{PractitionerRoleMREC}}\",\r\n                        \"display\": \"Лечащий врач Иванов\"\r\n                    }\r\n                }\r\n            }\r\n        ]\r\n    }",
											"options": {
												"raw": {
													"language": "json"
												}
											}
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/$import",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Bundle",
												"$import"
											]
										}
									},
									"response": []
								},
								{
									"name": "получение статуса импорта пакета медицинских данных",
									"request": {
										"method": "GET",
										"header": [],
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/{{bundleId}}/$status",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Bundle",
												"{{bundleId}}",
												"$status"
											]
										}
									},
									"response": []
								},
								{
									"name": "проверка сохранения Сведений о ВН в ЦИСЗ",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = pm.response.json();\r",
													"let resourceId = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.id;\r",
													"let conditionId = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.diagnosis[0].condition[0].reference.reference.split('/')[1];\r",
													"\r",
													"pm.collectionVariables.set(\"tempDis2\", resourceId);\r",
													"pm.collectionVariables.set(\"conditionId\", conditionId);\r",
													"\r",
													"console.log(resourceId)\r",
													"console.log(conditionId)"
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"protocolProfileBehavior": {
										"disableBodyPruning": true
									},
									"request": {
										"method": "GET",
										"header": [],
										"body": {
											"mode": "raw",
											"raw": ""
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/EpisodeOfCare?_profile=https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisability&patient={{patientId}}",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Patient",
												"{{patientId}}",
												"EpisodeOfCare"
											],
											"query": [
												{
													"key": "_profile",
													"value": "https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisability"
												},
												{
													"key": "patient",
													"value": "{{patientId}}"
												},
												{
													"key": "date",
													"value": "2025-04-05",
													"disabled": true
												},
												{
													"key": "identifier",
													"value": "AB2222222",
													"disabled": true
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "проверка сохранения Случай ВН",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = pm.response.json();\r",
													"let EpisodeOfCareVN = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.id;\r",
													"\r",
													"pm.collectionVariables.set(\"EpisodeOfCareVN\", EpisodeOfCareVN);\r",
													"console.log(EpisodeOfCareVN)"
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"protocolProfileBehavior": {
										"disableBodyPruning": true
									},
									"request": {
										"method": "GET",
										"header": [],
										"body": {
											"mode": "raw",
											"raw": ""
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/EpisodeOfCare?_profile=https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisabilitySum&patient={{patientId}}",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Patient",
												"{{patientId}}",
												"EpisodeOfCare"
											],
											"query": [
												{
													"key": "_profile",
													"value": "https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisabilitySum"
												},
												{
													"key": "patient",
													"value": "{{patientId}}"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "Получение случая в HTML",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = pm.response.json();\r",
													"let EpisodeOfCareVN = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.id;\r",
													"\r",
													"pm.collectionVariables.set(\"EpisodeOfCareVN\", EpisodeOfCareVN);\r",
													"console.log(EpisodeOfCareVN)\r",
													""
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"protocolProfileBehavior": {
										"disableBodyPruning": true,
										"disabledSystemHeaders": {}
									},
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Accept",
												"value": "text/html",
												"type": "text"
											}
										],
										"body": {
											"mode": "raw",
											"raw": ""
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/EpisodeOfCare/{{EpisodeOfCareVN}}",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Patient",
												"{{patientId}}",
												"EpisodeOfCare",
												"{{EpisodeOfCareVN}}"
											]
										}
									},
									"response": []
								},
								{
									"name": "проверка создания  особых отметок",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = pm.response.json();\r",
													"let resourceId = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.id;\r",
													"\r",
													"pm.collectionVariables.set(\"tdBabyCareSum\", resourceId);\r",
													"\r",
													"console.log(resourceId)\r",
													""
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"protocolProfileBehavior": {
										"disableBodyPruning": true
									},
									"request": {
										"method": "GET",
										"header": [],
										"body": {
											"mode": "raw",
											"raw": ""
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/Flag?_profile=https://fhir.by/StructureDefinition/FlagTemporaryDisability&patient={{patientId}}",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Patient",
												"{{patientId}}",
												"Flag"
											],
											"query": [
												{
													"key": "_profile",
													"value": "https://fhir.by/StructureDefinition/FlagTemporaryDisability"
												},
												{
													"key": "patient",
													"value": "{{patientId}}"
												}
											]
										}
									},
									"response": []
								}
							]
						},
						{
							"name": "CASE 2.1.2 Оформление бумажного листка нетрудоспособности при выписке пациента (с особыми отметками)",
							"item": [
								{
									"name": "импорт Сведений о ВН из МИС в ЦИСЗ",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"pm.test(\"Валидный бандл должен отработать со статусом 202\", function () {\r",
													"    pm.response.to.have.status(202);\r",
													"});\r",
													"\r",
													"var jsonData = pm.response.json();\r",
													"let bundleId = jsonData.parameter.find(obj => obj.name === \"ResourceId\").valueString;\r",
													"let statusReference = jsonData.parameter.find(obj => obj.name === \"OperationStatusReference\");\r",
													"\r",
													"console.log(statusReference.valueReference.reference);\r",
													"\r",
													"pm.collectionVariables.set(\"bundleId\", bundleId);\r",
													"pm.collectionVariables.set(\"StatusUrl\", statusReference.valueReference.reference);\r",
													""
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"request": {
										"method": "POST",
										"header": [
											{
												"key": "X-Fhir-By-Version",
												"value": "active",
												"type": "text"
											}
										],
										"body": {
											"mode": "raw",
											"raw": "{\r\n    \"resourceType\": \"Bundle\",\r\n    \"id\": \"BundleFull\",\r\n    \"meta\": {\r\n        \"profile\": [\r\n            \"https://fhir.by/AbstractArea/StructureDefinition/Bundle/MedicationDocument\"\r\n        ]\r\n    },\r\n    \"identifier\": {\r\n        \"system\": \"https://fhir.by/ValueSet/urn:ietf:rfc:3986\",\r\n        \"value\": \"{{$guid}}\"\r\n    },\r\n    \"type\": \"document\",\r\n    \"timestamp\": \"2024-04-07T11:12:21Z\",\r\n    \"entry\": [\r\n        {\r\n            \"fullUrl\": \"Composition/CompositionFullBundle\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Composition\",\r\n                \"id\": \"{{$guid}}\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/CompDocument\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"type\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/CompositionType\",\r\n                            \"code\": \"general\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": [\r\n                    {\r\n                        \"reference\": \"Patient/Patient1\",\r\n                        \"display\": \"Ивов В.В.\"\r\n                    }\r\n                ],\r\n                \"date\": \"2024-07-22T11:12:21Z\",\r\n                \"author\": [\r\n                    {\r\n                        \"reference\": \"Practitioner/{{PractitionerId}}\",\r\n                        \"display\": \"Филатов И.А.\"\r\n                    }\r\n                ],\r\n                \"title\": \"Discharge Summary\",\r\n                \"custodian\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Patient/Patient1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Patient\",\r\n                \"id\": \"Patient1\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/PatientWithIdentificationNumber\"\r\n                    ]\r\n                },\r\n                \"identifier\": [\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"INP\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7551704A009PB4\"\r\n                    },\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"IPA\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7551704A009PB4\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedString\",\r\n                                        \"valueString\": \"Центральным РУВД г Минска, 21.08.2021\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedDate\",\r\n                                        \"valueDate\": \"2021-08-21\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedCode\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/OCAM\",\r\n                                                    \"code\": \"106\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PassportIssued\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"Passport-RB\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"MP0000711\"\r\n                    }\r\n                ],\r\n                \"active\": true,\r\n                \"name\": [\r\n                    {\r\n                        \"family\": \"Васильев\",\r\n                        \"given\": [\r\n                            \"Василий\",\r\n                            \"Васильевич\"\r\n                        ],\r\n                        \"period\": {\r\n                            \"start\": \"2024-01-31\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"telecom\": [\r\n                    {\r\n                        \"system\": \"phone\",\r\n                        \"value\": \"89001234568\",\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientTelecomPurpose\",\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientAccountPoint\",\r\n                                        \"valueBoolean\": true\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientConsentForNotification\",\r\n                                        \"valueBoolean\": true\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"system\": \"email\",\r\n                        \"value\": \"tsv1@agsr.by\",\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientTelecomPurpose\",\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientAccountPoint\",\r\n                                        \"valueBoolean\": false\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientConsentForNotification\",\r\n                                        \"valueBoolean\": true\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"gender\": \"male\",\r\n                \"birthDate\": \"1989-01-31\",\r\n                \"deceasedBoolean\": false,\r\n                \"address\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"code\": \"1125824837\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 11\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"home\",\r\n                        \"postalCode\": \"212011\",\r\n                        \"text\": \"Беларусь, Могилевская область, г.Могилев, Переулок Гоголя, д.19 кв. 11, 212011\"\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Condition/DiagnosisrFullBundle\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Condition\",\r\n                \"id\": \"DiagnosisrFullBundle\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/FinalDiagnosis\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/KindOfDiagnosis\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/KindOfDiagnosisCode\",\r\n                                    \"code\": \"Final\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/AssertedDate\",\r\n                        \"valueDateTime\": \"2024-04-07\"\r\n                    }\r\n                ],\r\n                \"clinicalStatus\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"http://terminology.hl7.org/CodeSystem/condition-clinical\",\r\n                            \"code\": \"active\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/InternClassificDiseases10\",\r\n                            \"code\": \"K35\",\r\n                            \"display\": \"K35 - Острый аппендицит\"\r\n                        }\r\n                    ],\r\n                    \"text\": \"Острый аппендицит\"\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/Patient1\",\r\n                    \"display\": \"Васильев Василий Васильевич\"\r\n                },\r\n                \"onsetDateTime\": \"2024-04-07\",\r\n                \"recordedDate\": \"2024-04-07\",\r\n                \"participant\": [\r\n                    {\r\n                        \"actor\": {\r\n                            \"reference\": \"PractitionerRole/{{PractitionerRoleMREC}}\",\r\n                            \"display\": \"Филатов И.А.\"\r\n                        }\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Encounter/EncounterBundleForTest\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Encounter\",\r\n                \"id\": \"EncounterBundleForTest\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/EncounterGeneral\"\r\n                    ]\r\n                },\r\n                \"status\": \"completed\",\r\n                \"class\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/VSTermsOfService\",\r\n                                \"code\": \"2\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"priority\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/HealthCareForms\",\r\n                            \"code\": \"emergency\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"type\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/TypeOfHealthCare\",\r\n                                \"code\": \"special\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/Patient1\"\r\n                },\r\n                \"serviceProvider\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"participant\": [\r\n                    {\r\n                        \"actor\": {\r\n                            \"reference\": \"Practitioner/{{PractitionerId}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"actualPeriod\": {\r\n                    \"start\": \"2024-02-07T11:12:21Z\",\r\n                    \"end\": \"2024-02-07T11:25:21Z\"\r\n                },\r\n                \"diagnosis\": [\r\n                    {\r\n                        \"condition\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"use\": [\r\n                            {\r\n                                \"coding\": [\r\n                                    {\r\n                                        \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                        \"code\": \"mainDiagnosis\"\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"EpisodeOfCare/ExampleTDCaseF1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"EpisodeOfCare\",\r\n                \"id\": \"ExampleTDCaseF1\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisability\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDisabilityKindDisability\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityKindDisability\",\r\n                                    \"code\": \"01\",\r\n                                    \"display\": \"в связи с заболеванием общим\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDiasabilityEncounterAction\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/SeakLeavePeriod\",\r\n                                    \"code\": \"close\",\r\n                                    \"display\": \"Закрытие случая\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDisabilityPeriodPaid\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityPeriodPaidCode\",\r\n                                    \"code\": \"1\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TDCaseClosing\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TDCaseClosing\",\r\n                                    \"code\": \"1\",\r\n                                    \"display\": \"Трудоспособен\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDisabilityRegime\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityRegime\",\r\n                                    \"code\": \"2\",\r\n                                    \"display\": \"стационарный\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/GoToWork\",\r\n                        \"valueDate\": \"2025-04-20\"\r\n                    }\r\n                ],\r\n                \"identifier\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/TemporaryDiasabilityExpirationDate\",\r\n                                \"valueDate\": \"2025-04-20\"\r\n                            }\r\n                        ],\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityDocType\",\r\n                                    \"code\": \"tdsheet\",\r\n                                    \"display\": \"Лист временной нетрудоспособности\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"AB1111111\",\r\n                        \"period\": {\r\n                            \"start\": \"2025-04-11\",\r\n                            \"end\": \"2025-04-20\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"status\": \"finished\",\r\n                \"period\": {\r\n                    \"start\": \"2025-04-11\",\r\n                    \"end\":\"2025-04-20\"\r\n                },\r\n                \"reason\": [\r\n                    {\r\n                        \"use\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityReasonOfDisability\",\r\n                                    \"code\": \"43\",\r\n                                    \"display\": \"болезни аппендикса, грыжи, болезни кишечника и брюшины (К35 - К38, К40 - К46, К55 - К58, К60 - К63, К65, К66)\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    }\r\n                ],\r\n                \"diagnosis\": [\r\n                    {\r\n                        \"condition\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"patient\": {\r\n                    \"reference\": \"Patient/Patient1\"\r\n                },\r\n                \"managingOrganization\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"careManager\": {\r\n                    \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\",\r\n                    \"display\": \"Лечащий врач Иванов\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Flag/FlagTDCase1.1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Flag\",\r\n                \"id\": \"FlagTDCase1.1\",\r\n                \"meta\": {\r\n                    \"lastUpdated\": \"2025-04-01T10:30:00Z\",\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/FlagTemporaryDisability\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/DateFlagReason\",\r\n                        \"valueDate\": \"2025-04-20\"\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/EpOCTDReference\",\r\n                        \"valueReference\": {\r\n                            \"reference\": \"EpisodeOfCare/ExampleTDCaseF1\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/RequestFromOrganization\",\r\n                        \"valueReference\": {\r\n                            \"reference\": \"Organization/{{OrganizationId}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"status\": \"active\",\r\n                \"code\": {\r\n                    \"extension\": [\r\n                        {\r\n                            \"url\": \"https://fhir.by/StructureDefinition/SpecialMarkPractitionerRole\",\r\n                            \"valueReference\": {\r\n                                \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\"\r\n                            }\r\n                        },\r\n                        {\r\n                            \"url\": \"https://fhir.by/StructureDefinition/SpecialMarkDate\",\r\n                            \"valueDate\": \"2025-04-18\"\r\n                        }\r\n                    ],\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/FlagSpecialMarks\",\r\n                            \"code\": \"disruption-leaving-hospital\",\r\n                            \"display\": \"нарушение режима: уход из стационара, дата (период)\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/Patient1\",\r\n                    \"display\": \"Васильев В.В.\"\r\n                },\r\n                \"author\": {\r\n                    \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\",\r\n                    \"display\": \"Лечащий врач Иванов\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"EpisodeOfCare/ExampleHospitalisationPlan\",\r\n            \"resource\": {\r\n                \"resourceType\": \"EpisodeOfCare\",\r\n                \"id\": \"ExampleHospitalisationPlan\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/Hospitalisation\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/TreatmentOutcome\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/TreatmentOutcome\",\r\n                                            \"code\": \"3\",\r\n                                            \"display\": \"Выписка из стационара\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/BedProfiles\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/BedProfile\",\r\n                                            \"code\": \"short-surgical-adult\",\r\n                                            \"display\": \"хирургические для взрослых\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/LocationUnitOfOrganization\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"Location/{{LocationId}}\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/TreatmentPeriod\",\r\n                                \"valuePeriod\": {\r\n                                    \"start\": \"2025-04-01\",\r\n                                    \"end\": \"2025-04-20\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/TreatingPractitioner\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/HeadOfUnit\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TreatmentInUnit\"\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/EmergencyHospitalisationTerm\",\r\n                        \"valuePositiveInt\": 2\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/HospitalisationPaidType\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/HospitalisationPaidType\",\r\n                                            \"code\": \"optional-insurance\",\r\n                                            \"display\": \"добровольное медицинское страхование\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/InsurancePolicyNumber\",\r\n                                        \"valueString\": \"AO39198215\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/DateIssueInsurancePolicy\",\r\n                                        \"valueDate\": \"2024-09-01\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PeriodTemporaryInsurancePolicy\",\r\n                                        \"valuePeriod\": {\r\n                                            \"start\": \"2024-09-01\",\r\n                                            \"end\": \"2025-12-01\"\r\n                                        }\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/InsuranceOrganization\",\r\n                                        \"valueString\": \"АГСРСтрах\"\r\n                                    }\r\n                                ],\r\n                                \"url\": \"https://fhir.by/StructureDefinition/HealthInsurance\"\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/HospitalisationPaid\"\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/DiagnosisOfSendingOrganisation\",\r\n                        \"valueReference\": {\r\n                            \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/PreviusResourceHospitalisation\",\r\n                        \"valueReference\": {\r\n                            \"reference\": \"EpisodeOfCare/{{episodOfCareId}}\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/SequenceNumbeHospitalisation\",\r\n                        \"valuePositiveInt\": 1\r\n                    }\r\n                ],\r\n                \"identifier\": [\r\n                    {\r\n                        \"value\": \"123/5\",\r\n                        \"assigner\": {\r\n                            \"reference\": \"Organization/{{OrganizationId}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"status\": \"waitlist\",\r\n                \"type\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/TypeOfHealthCare\",\r\n                                \"code\": \"special\",\r\n                                \"display\": \"специализированная\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"reason\": [\r\n                    {\r\n                        \"use\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/HospitalisationReasonUse\",\r\n                                    \"code\": \"2\",\r\n                                    \"display\": \"Экстренная госпитализация\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": [\r\n                            {\r\n                                \"concept\": {\r\n                                    \"text\": \"Экстренная госпитализация\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"diagnosis\": [\r\n                    {\r\n                        \"condition\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/TypeOfDiagnosis\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                                    \"code\": \"mainDiagnosis\",\r\n                                                    \"display\": \"Основной диагноз\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/TypeOfDiagnosis\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                                    \"code\": \"additionalDiagnosis\",\r\n                                                    \"display\": \"Сопутствующий диагноз\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"use\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/KindOfDiagnosisCode\",\r\n                                    \"code\": \"Preliminary\",\r\n                                    \"display\": \"Предварительный диагноз\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"condition\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/TypeOfDiagnosis\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                                    \"code\": \"mainDiagnosis\",\r\n                                                    \"display\": \"Основной диагноз\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/TypeOfDiagnosis\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                                    \"code\": \"additionalDiagnosis\",\r\n                                                    \"display\": \"Сопутствующий диагноз\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"use\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/KindOfDiagnosisCode\",\r\n                                    \"code\": \"Clinical\",\r\n                                    \"display\": \"Клинический диагноз\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"condition\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/TypeOfDiagnosis\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                                    \"code\": \"mainDiagnosis\",\r\n                                                    \"display\": \"Основной диагноз\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/TypeOfDiagnosis\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                                    \"code\": \"additionalDiagnosis\",\r\n                                                    \"display\": \"Сопутствующий диагноз\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"use\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/KindOfDiagnosisCode\",\r\n                                    \"code\": \"Final\",\r\n                                    \"display\": \"Заключительный диагноз\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    }\r\n                ],\r\n                \"patient\": {\r\n                    \"reference\": \"Patient/Patient1\"\r\n                },\r\n                \"managingOrganization\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"period\": {\r\n                    \"start\": \"2025-04-01\",\r\n                    \"end\": \"2025-04-20\"\r\n                },\r\n               \r\n                \"careManager\": {\r\n                    \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\"\r\n                }\r\n            }\r\n        }\r\n    ]\r\n}",
											"options": {
												"raw": {
													"language": "json"
												}
											}
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/$import",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Bundle",
												"$import"
											]
										}
									},
									"response": []
								},
								{
									"name": "получение статуса импорта пакета медицинских данных",
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "content-type",
												"value": "application/cms",
												"type": "text",
												"disabled": true
											}
										],
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/{{bundleId}}/$status",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Bundle",
												"{{bundleId}}",
												"$status"
											]
										}
									},
									"response": []
								},
								{
									"name": "проверка сохранения Сведений о ВН в ЦИСЗ",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = pm.response.json();\r",
													"let resourceId = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.id;\r",
													"let conditionId = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.diagnosis[0].condition[0].reference.reference.split('/')[1];\r",
													"\r",
													"pm.collectionVariables.set(\"tempDisClose\", resourceId);\r",
													"pm.collectionVariables.set(\"conditionId\", conditionId);\r",
													"\r",
													"console.log(resourceId)\r",
													"console.log(conditionId)"
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"protocolProfileBehavior": {
										"disableBodyPruning": true
									},
									"request": {
										"method": "GET",
										"header": [],
										"body": {
											"mode": "raw",
											"raw": ""
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/EpisodeOfCare?_profile=https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisability&patient={{patientId}}&_sort=-_lastUpdated",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Patient",
												"{{patientId}}",
												"EpisodeOfCare"
											],
											"query": [
												{
													"key": "_profile",
													"value": "https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisability"
												},
												{
													"key": "patient",
													"value": "{{patientId}}"
												},
												{
													"key": "_sort",
													"value": "-_lastUpdated"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "проверка сохранения изменений в Случай ВН",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = pm.response.json();\r",
													"let EpisodeOfCareVN = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.id;\r",
													"\r",
													"pm.collectionVariables.set(\"EpisodeOfCareVN\", EpisodeOfCareVN);\r",
													"console.log(EpisodeOfCareVN)"
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"protocolProfileBehavior": {
										"disableBodyPruning": true
									},
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Accept",
												"value": "text/html",
												"type": "text",
												"disabled": true
											}
										],
										"body": {
											"mode": "raw",
											"raw": ""
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/EpisodeOfCare?_profile=https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisabilitySum&patient={{patientId}}",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Patient",
												"{{patientId}}",
												"EpisodeOfCare"
											],
											"query": [
												{
													"key": "_profile",
													"value": "https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisabilitySum"
												},
												{
													"key": "patient",
													"value": "{{patientId}}"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "Получение случая в HTML Copy",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = pm.response.json();\r",
													"let EpisodeOfCareVN = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.id;\r",
													"\r",
													"pm.collectionVariables.set(\"EpisodeOfCareVN\", EpisodeOfCareVN);\r",
													"console.log(EpisodeOfCareVN)\r",
													""
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"protocolProfileBehavior": {
										"disableBodyPruning": true,
										"disabledSystemHeaders": {}
									},
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Accept",
												"value": "text/html",
												"type": "text"
											}
										],
										"body": {
											"mode": "raw",
											"raw": ""
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/EpisodeOfCare/{{EpisodeOfCareVN}}",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Patient",
												"{{patientId}}",
												"EpisodeOfCare",
												"{{EpisodeOfCareVN}}"
											]
										}
									},
									"response": []
								},
								{
									"name": "проверка создания  особых отметок",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = pm.response.json();\r",
													"let resourceId = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.id;\r",
													"\r",
													"pm.collectionVariables.set(\"tdBabyCareSum\", resourceId);\r",
													"\r",
													"console.log(resourceId)\r",
													""
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"protocolProfileBehavior": {
										"disableBodyPruning": true
									},
									"request": {
										"method": "GET",
										"header": [],
										"body": {
											"mode": "raw",
											"raw": ""
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/Flag?_profile=https://fhir.by/StructureDefinition/FlagTemporaryDisability&patient={{patientId}}",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Patient",
												"{{patientId}}",
												"Flag"
											],
											"query": [
												{
													"key": "_profile",
													"value": "https://fhir.by/StructureDefinition/FlagTemporaryDisability"
												},
												{
													"key": "patient",
													"value": "{{patientId}}"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "Проверка сохранения ресурсов госпитализации",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = pm.response.json();\r",
													"let episodOfCareId = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.id;\r",
													"\r",
													"pm.collectionVariables.set(\"episodOfCareId\", episodOfCareId);\r",
													"console.log(episodOfCareId)\r",
													""
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"protocolProfileBehavior": {
										"disableBodyPruning": true
									},
									"request": {
										"method": "GET",
										"header": [],
										"body": {
											"mode": "raw",
											"raw": ""
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/EpisodeOfCare?_profile=https://fhir.by/StructureDefinition/Hospitalisation&patient={{patientId}}&_sort=-_lastUpdated",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Patient",
												"{{patientId}}",
												"EpisodeOfCare"
											],
											"query": [
												{
													"key": "_profile",
													"value": "https://fhir.by/StructureDefinition/Hospitalisation"
												},
												{
													"key": "patient",
													"value": "{{patientId}}"
												},
												{
													"key": "_sort",
													"value": "-_lastUpdated"
												}
											]
										}
									},
									"response": []
								}
							]
						}
					]
				},
				{
					"name": "CASE 2.2 Оформление бумажного листка нетрудоспособности на члена семьи по уходу за здоровым ребенком до 3-х лет, мать которого находится на лечении в стационаре (с особыми отметками)",
					"item": [
						{
							"name": "предварительные условия",
							"item": [
								{
									"name": "импорт пакета медицинской информации",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"pm.test(\"Валидный бандл должен отработать со статусом 202\", function () {\r",
													"    pm.response.to.have.status(202);\r",
													"});\r",
													"\r",
													"var jsonData = pm.response.json();\r",
													"let bundleId = jsonData.parameter.find(obj => obj.name === \"ResourceId\").valueString;\r",
													"let statusReference = jsonData.parameter.find(obj => obj.name === \"OperationStatusReference\");\r",
													"\r",
													"console.log(statusReference.valueReference.reference);\r",
													"\r",
													"pm.collectionVariables.set(\"bundleId\", bundleId);\r",
													"pm.collectionVariables.set(\"StatusUrl\", statusReference.valueReference.reference);\r",
													""
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										},
										{
											"listen": "prerequest",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"request": {
										"method": "POST",
										"header": [
											{
												"key": "X-Fhir-By-Version",
												"value": "active",
												"type": "text"
											}
										],
										"body": {
											"mode": "raw",
											"raw": "{\r\n    \"resourceType\": \"Bundle\",\r\n    \"id\": \"ExampleBundleForDemo\",\r\n    \"meta\": {\r\n        \"profile\": [\r\n            \"https://fhir.by/AbstractArea/StructureDefinition/Bundle/MedicationDocument\"\r\n        ]\r\n    },\r\n    \"identifier\": {\r\n        \"system\": \"https://fhir.by/ValueSet/urn:ietf:rfc:3986\",\r\n        \"value\": \"{{$guid}}\"\r\n    },\r\n    \"type\": \"document\",\r\n    \"timestamp\": \"2024-07-22T11:12:21Z\",\r\n    \"entry\": [\r\n        {\r\n            \"fullUrl\": \"Composition/CompDocumentForDemo\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Composition\",\r\n                \"id\": \"{{$guid}}\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/CompDocument\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"type\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/CompositionType\",\r\n                            \"code\": \"general\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": [\r\n                    {\r\n                        \"reference\": \"Patient/Patient1\",\r\n                        \"display\": \"Ивов В.В.\"\r\n                    }\r\n                ],\r\n                \"date\": \"2024-07-22T11:12:21Z\",\r\n                \"author\": [\r\n                    {\r\n                        \"reference\": \"Practitioner/{{PractitionerId}}\",\r\n                        \"display\": \"Филатов И.А.\"\r\n                    }\r\n                ],\r\n                \"title\": \"Discharge Summary\",\r\n                \"custodian\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Patient/Patient1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Patient\",\r\n                \"id\": \"Patient1\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/PatientWithIdentificationNumber\"\r\n                    ]\r\n                },\r\n                \"identifier\": [\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"INP\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7551168A009PB0\"\r\n                    },\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"IPA\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7551168A009PB0\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedString\",\r\n                                        \"valueString\": \"Центральным РУВД г Минска, 21.08.2021\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedDate\",\r\n                                        \"valueDate\": \"2021-08-21\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedCode\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/OCAM\",\r\n                                                    \"code\": \"106\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PassportIssued\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"Passport-RB\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"MP0000911\"\r\n                    }\r\n                ],\r\n                \"active\": true,\r\n                \"name\": [\r\n                    {\r\n                        \"family\": \"Лукина\",\r\n                        \"given\": [\r\n                            \"Алина\",\r\n                            \"Владимировна\"\r\n                        ],\r\n                        \"period\": {\r\n                            \"start\": \"2024-01-31\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"telecom\": [\r\n                   \r\n                    {\r\n                        \"system\": \"phone\",\r\n                        \"value\": \"89001234568\",\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientTelecomPurpose\",\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientAccountPoint\",\r\n                                        \"valueBoolean\": true\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientConsentForNotification\",\r\n                                        \"valueBoolean\": true\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    },\r\n                                      \r\n                    {\r\n                        \"system\": \"email\",\r\n                        \"value\": \"tsv1@agsr.by\",\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientTelecomPurpose\",\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientAccountPoint\",\r\n                                        \"valueBoolean\": false\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientConsentForNotification\",\r\n                                        \"valueBoolean\": true\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"gender\": \"female\",\r\n                \"birthDate\": \"1989-01-31\",\r\n                \"deceasedBoolean\": false,\r\n                \"address\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"code\": \"1125824837\"                                            \r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 11\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"home\",\r\n                        \"postalCode\": \"212011\",\r\n                        \"text\": \"Беларусь, Могилевская область, г.Могилев, Переулок Гоголя, д.19 кв. 11, 212011\"\r\n                    }\r\n                ]\r\n            }\r\n        }\r\n    ]\r\n}",
											"options": {
												"raw": {
													"language": "json"
												}
											}
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/$import",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Bundle",
												"$import"
											]
										}
									},
									"response": []
								},
								{
									"name": "получение статуса импорта пакета медицинских данных",
									"request": {
										"method": "GET",
										"header": [],
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/{{bundleId}}/$status",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Bundle",
												"{{bundleId}}",
												"$status"
											]
										}
									},
									"response": []
								},
								{
									"name": "поиск пациента по идентификационному номеру",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = pm.response.json();\r",
													"let patientId = jsonData.entry.find(obj => obj.resource.resourceType === \"Patient\").resource.id;\r",
													"\r",
													"pm.collectionVariables.set(\"patientId\", patientId);\r",
													"console.log(patientId)\r",
													""
												],
												"type": "text/javascript",
												"packages": {},
												"requests": {}
											}
										}
									],
									"protocolProfileBehavior": {
										"disableBodyPruning": true
									},
									"request": {
										"method": "GET",
										"header": [],
										"body": {
											"mode": "raw",
											"raw": "",
											"options": {
												"raw": {
													"language": "json"
												}
											}
										},
										"url": {
											"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient?identifier=7551168A009PB0",
											"protocol": "{{Schema}}",
											"host": [
												"{{Proxy-host}}"
											],
											"path": [
												"fhir",
												"Patient"
											],
											"query": [
												{
													"key": "identifier",
													"value": "7551168A009PB0"
												}
											]
										}
									},
									"response": []
								}
							]
						},
						{
							"name": "импорт Сведений о ВН из МИС в ЦИСЗ",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Валидный бандл должен отработать со статусом 202\", function () {\r",
											"    pm.response.to.have.status(202);\r",
											"});\r",
											"\r",
											"var jsonData = pm.response.json();\r",
											"let bundleId = jsonData.parameter.find(obj => obj.name === \"ResourceId\").valueString;\r",
											"let statusReference = jsonData.parameter.find(obj => obj.name === \"OperationStatusReference\");\r",
											"\r",
											"console.log(statusReference.valueReference.reference);\r",
											"\r",
											"pm.collectionVariables.set(\"bundleId\", bundleId);\r",
											"pm.collectionVariables.set(\"StatusUrl\", statusReference.valueReference.reference);\r",
											""
										],
										"type": "text/javascript",
										"packages": {},
										"requests": {}
									}
								}
							],
							"request": {
								"method": "POST",
								"header": [
									{
										"key": "X-Fhir-By-Version",
										"value": "active",
										"type": "text"
									}
								],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"resourceType\": \"Bundle\",\r\n    \"id\": \"BundleFull\",\r\n    \"meta\": {\r\n        \"profile\": [\r\n            \"https://fhir.by/AbstractArea/StructureDefinition/Bundle/MedicationDocument\"\r\n        ]\r\n    },\r\n    \"identifier\": {\r\n        \"system\": \"https://fhir.by/ValueSet/urn:ietf:rfc:3986\",\r\n        \"value\": \"{{$guid}}\"\r\n    },\r\n    \"type\": \"document\",\r\n    \"timestamp\": \"2024-04-07T11:12:21Z\",\r\n    \"entry\": [\r\n        {\r\n            \"fullUrl\": \"Composition/CompositionFullBundle\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Composition\",\r\n                \"id\": \"{{$guid}}\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/CompDocument\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"type\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/CompositionType\",\r\n                            \"code\": \"general\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": [\r\n                    {\r\n                        \"reference\": \"Patient/Patient1\",\r\n                        \"display\": \"Семёнова А.П.\"\r\n                    }\r\n                ],\r\n                \"date\": \"2024-07-22T11:12:21Z\",\r\n                \"author\": [\r\n                    {\r\n                        \"reference\": \"Practitioner/{{PractitionerId}}\",\r\n                        \"display\": \"Филатов И.А.\"\r\n                    }\r\n                ],\r\n                \"title\": \"Discharge Summary\",\r\n                \"custodian\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Patient/Patient1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Patient\",\r\n                \"id\": \"Patient1\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/PatientWithIdentificationNumber\"\r\n                    ]\r\n                },\r\n                \"identifier\": [\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"INP\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7551168A009PB0\"\r\n                    },\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"IPA\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7551168A009PB0\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedString\",\r\n                                        \"valueString\": \"Центральным РУВД г Минска, 21.08.2021\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedDate\",\r\n                                        \"valueDate\": \"2021-08-21\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedCode\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/OCAM\",\r\n                                                    \"code\": \"106\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PassportIssued\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"Passport-RB\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"MP0000911\"\r\n                    }\r\n                ],\r\n                \"active\": true,\r\n                \"name\": [\r\n                    {\r\n                        \"family\": \"Лукина\",\r\n                        \"given\": [\r\n                            \"Алина\",\r\n                            \"Владимировна\"\r\n                        ],\r\n                        \"period\": {\r\n                            \"start\": \"2024-01-31\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"telecom\": [\r\n                    {\r\n                        \"system\": \"phone\",\r\n                        \"value\": \"89001234568\",\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientTelecomPurpose\",\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientAccountPoint\",\r\n                                        \"valueBoolean\": true\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientConsentForNotification\",\r\n                                        \"valueBoolean\": true\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"system\": \"email\",\r\n                        \"value\": \"tsv1@agsr.by\",\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientTelecomPurpose\",\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientAccountPoint\",\r\n                                        \"valueBoolean\": false\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientConsentForNotification\",\r\n                                        \"valueBoolean\": true\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"gender\": \"male\",\r\n                \"birthDate\": \"1989-01-31\",\r\n                \"deceasedBoolean\": false,\r\n                \"address\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"code\": \"1125824837\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 11\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"home\",\r\n                        \"postalCode\": \"212011\",\r\n                        \"text\": \"Беларусь, Могилевская область, г.Могилев, Переулок Гоголя, д.19 кв. 11, 212011\"\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"RelatedPerson/ExampleRelatedPersonCorolevaIV\",\r\n            \"resource\": {\r\n                \"resourceType\": \"RelatedPerson\",\r\n                \"id\": \"ExampleRelatedPersonCorolevaIV\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/RelatedPersonTemporaryBy\"\r\n                    ]\r\n                },\r\n                \"identifier\": [\r\n                    {\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"INP\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7551220A009PB3\",\r\n                        \"period\": {\r\n                            \"start\": \"2024-01-31\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedString\",\r\n                                        \"valueString\": \"Центральным РУВД г Минска, 11.08.2021\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedDate\",\r\n                                        \"valueDate\": \"2021-08-11\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedCode\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/OCAM\",\r\n                                                    \"code\": \"106\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PassportIssued\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"Passport-RB\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"MP1634579\"\r\n                    }\r\n                ],\r\n                \"active\": true,\r\n                \"patient\": {\r\n                    \"reference\": \"Patient/Patient1\"\r\n                },\r\n                \"relationship\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/RelatedPersonType\",\r\n                                \"code\": \"husband\",\r\n                                \"display\": \"муж\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"name\": [\r\n                    {\r\n                        \"family\": \"Лукин\",\r\n                        \"given\": [\r\n                            \"Олег\",\r\n                            \"Владимирович\"\r\n                        ]\r\n                    }\r\n                ],\r\n                \"telecom\": [\r\n                    {\r\n                        \"system\": \"phone\",\r\n                        \"value\": \"+375172000669\",\r\n                        \"period\": {\r\n                            \"start\": \"2024-01-31\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"gender\": \"male\",\r\n                \"birthDate\": \"1992-10-08\",\r\n                \"address\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"code\": \"72609920778\",\r\n                                            \"display\": \"Переулок Снежный\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 11\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"home\",\r\n                        \"text\": \"Могилевская область, г.Могилев, Переулок Гоголя, д.19\",\r\n                        \"postalCode\": \"212011\"\r\n                    }\r\n                ],\r\n                \"period\": {\r\n                    \"start\": \"2024-01-31\",\r\n                    \"end\": \"2025-09-30\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Encounter/EncounterBundleForTest\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Encounter\",\r\n                \"id\": \"EncounterBundleForTest\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/EncounterGeneral\"\r\n                    ]\r\n                },\r\n                \"status\": \"completed\",\r\n                \"class\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/VSTermsOfService\",\r\n                                \"code\": \"2\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"priority\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/HealthCareForms\",\r\n                            \"code\": \"planned\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"type\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/TypeOfHealthCare\",\r\n                                \"code\": \"primary\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/Patient1\"\r\n                },\r\n                \"serviceProvider\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"participant\": [\r\n                    {\r\n                        \"actor\": {\r\n                            \"reference\": \"Practitioner/{{PractitionerId}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"actualPeriod\": {\r\n                    \"start\": \"2024-02-07T11:12:21Z\",\r\n                    \"end\": \"2024-02-07T11:25:21Z\"\r\n                },\r\n                \"diagnosis\": [\r\n                    {\r\n                        \"condition\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"use\": [\r\n                            {\r\n                                \"coding\": [\r\n                                    {\r\n                                        \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                        \"code\": \"mainDiagnosis\"\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Condition/DiagnosisrFullBundle\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Condition\",\r\n                \"id\": \"DiagnosisrFullBundle\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/FinalDiagnosis\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/KindOfDiagnosis\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/KindOfDiagnosisCode\",\r\n                                    \"code\": \"Final\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/AssertedDate\",\r\n                        \"valueDateTime\": \"2024-04-07\"\r\n                    }\r\n                ],\r\n                \"clinicalStatus\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"http://terminology.hl7.org/CodeSystem/condition-clinical\",\r\n                            \"code\": \"active\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/InternClassificDiseases10\",\r\n                            \"code\": \"J03\",\r\n                            \"display\": \"J03 - Острый тонзиллит\"\r\n                        }\r\n                    ],\r\n                    \"text\": \"Острый двусторонний тонзиллит. двусторонняя тонзиллэктомия от 02.04.2025\"\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/Patient1\",\r\n                    \"display\": \"Лукина А.В.\"\r\n                },\r\n                \"onsetDateTime\": \"2024-04-07\",\r\n                \"recordedDate\": \"2024-04-07\",\r\n                \"participant\": [\r\n                    {\r\n                        \"actor\": {\r\n                            \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\",\r\n                            \"display\": \"Иванов В.Э.\"\r\n                        }\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Flag/FlagTDCase1.1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Flag\",\r\n                \"id\": \"FlagTDCase1.1\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/FlagTemporaryDisability\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/DateFlagReason\",\r\n                        \"valueDate\": \"2025-04-20\"\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/EpOCTDReference\",\r\n                        \"valueReference\": {\r\n                            \"reference\": \"EpisodeOfCare/ExampleTDCase4.1\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/RequestFromOrganization\",\r\n                        \"valueReference\": {\r\n                            \"reference\": \"Organization/{{OrganizationId}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"status\": \"active\",\r\n                \"code\": {\r\n                    \"extension\": [\r\n                        {\r\n                            \"url\": \"https://fhir.by/StructureDefinition/SpecialMarkPractitionerRole\",\r\n                            \"valueReference\": {\r\n                                \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\"\r\n                            }\r\n                        },\r\n                        {\r\n                            \"url\": \"https://fhir.by/StructureDefinition/SpecialMarkString\",\r\n                            \"valueString\": \" Петр, 2023-01-31. Лукмна А.В. \"\r\n                        }\r\n                    ],\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/FlagSpecialMarks\",\r\n                            \"code\": \"child-name-mother-family\",\r\n                            \"display\": \"собственное имя, дата рождения ребенка, фамилия, инициалы матери (лица, фактически осуществляющего уход)\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/Patient1\"\r\n                },\r\n                \"author\": {\r\n                    \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\",\r\n                    \"display\": \"Лечащий врач Иванов\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"EpisodeOfCare/ExampleTDCase4.1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"EpisodeOfCare\",\r\n                \"id\": \"ExampleTDCase4.1\",\r\n                \"meta\": {\r\n                    \"lastUpdated\": \"2023-03-02T10:30:00Z\",\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisability\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/ReceiverRelatedPerson\",\r\n                        \"valueReference\": {\r\n                            \"reference\": \"RelatedPerson/ExampleRelatedPersonCorolevaIV\",\r\n                            \"display\": \"Лукин Олег Владимирович, дата рождения 08.10.1992 г.р.\"\r\n                        }\r\n                    },\r\n                   {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TDCaseClosing\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TDCaseClosing\",\r\n                                    \"code\": \"1\",\r\n                                    \"display\": \"Трудоспособен\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDisabilityKindDisability\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityKindDisability\",\r\n                                    \"code\": \"08\",\r\n                                    \"display\": \"в связи с уходом за ребенком в возрасте до 3 лет и ребенком-инвалидом в возрасте до 18 лет в случае болезни и (или) нахождения в стационарных.условиях в организации здравоохранения матери либо другого лица, фактически осуществляющего уход за ребенком (уход за ребенком до 3 лет (ребенком-инвалидом до 18 лет), болезнь матери (госпитализация матери), в случае нахождения матери либо другого лица, фактически осуществляющего уход за ребенком (уход за ребенком до 3 лет (ребенком-инвалидом до 18 лет) в санаторно-курортной организации, центре медицинской реабилитации или медико-социальной реабилитации по уходу за другим ребенком\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDiasabilityEncounterAction\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/SeakLeavePeriod\",\r\n                                    \"code\": \"close\",\r\n                                    \"display\": \"Закрытие случая\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDisabilityPeriodPaid\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityPeriodPaidCode\",\r\n                                    \"code\": \"1\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDisabilityRegime\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityRegime\",\r\n                                    \"code\": \"1\",\r\n                                    \"display\": \"амбулаторный\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    }\r\n                ],\r\n                \r\n                \"identifier\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/TemporaryDiasabilityExpirationDate\",\r\n                                \"valueDate\": \"2025-05-01\"\r\n                            }\r\n                        ],\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityDocType\",\r\n                                    \"code\": \"tdsheet\",\r\n                                    \"display\": \"Листок временной нетрудоспособности\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"AB7777777\",\r\n                        \"period\": {\r\n                            \"start\": \"2025-05-01\",\r\n                            \"end\": \"2025-05-07\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"reason\": [\r\n                    {\r\n                        \"use\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityReasonOfDisability\",\r\n                                    \"code\": \"43\",\r\n                                    \"display\": \"болезни аппендикса, грыжи, болезни кишечника и брюшины (К35 - К38, К40 - К46, К55 - К58, К60 - К63, К65, К66)\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    }\r\n                ],\r\n                \"status\": \"finished\",\r\n                \"patient\": {\r\n                    \"reference\": \"Patient/Patient1\",\r\n                    \"display\": \"Лукина А.В.\"\r\n                },\r\n                \"managingOrganization\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"period\": {\r\n                    \"start\": \"2025-05-01\",\r\n                    \"end\": \"2025-05-07\"\r\n                },\r\n                \"careManager\": {\r\n                    \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\",\r\n                    \"display\": \"Лечащий врач Иванов\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"EpisodeOfCare/ExampleHospitalisationPlan\",\r\n            \"resource\": {\r\n                \"resourceType\": \"EpisodeOfCare\",\r\n                \"id\": \"ExampleHospitalisationPlan\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/Hospitalisation\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/TreatmentOutcome\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/TreatmentOutcome\",\r\n                                            \"code\": \"3\",\r\n                                            \"display\": \"Выписка из стационара\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/BedProfiles\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/BedProfile\",\r\n                                            \"code\": \"short-lor-adult\",\r\n                                            \"display\": \"отоларингологические для взрослых\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/LocationUnitOfOrganization\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"Location/{{LocationId}}\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/TreatmentPeriod\",\r\n                                \"valuePeriod\": {\r\n                                    \"start\": \"2025-05-01\",\r\n                                    \"end\": \"2025-05-07\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/TreatingPractitioner\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/HeadOfUnit\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TreatmentInUnit\"\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/EmergencyHospitalisationTerm\",\r\n                        \"valuePositiveInt\": 2\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/HospitalisationPaidType\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/HospitalisationPaidType\",\r\n                                            \"code\": \"optional-insurance\",\r\n                                            \"display\": \"добровольное медицинское страхование\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/InsurancePolicyNumber\",\r\n                                        \"valueString\": \"AO39198215\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/DateIssueInsurancePolicy\",\r\n                                        \"valueDate\": \"2024-09-01\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PeriodTemporaryInsurancePolicy\",\r\n                                        \"valuePeriod\": {\r\n                                            \"start\": \"2024-09-01\",\r\n                                            \"end\": \"2025-12-01\"\r\n                                        }\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/InsuranceOrganization\",\r\n                                        \"valueString\": \"АГСРСтрах\"\r\n                                    }\r\n                                ],\r\n                                \"url\": \"https://fhir.by/StructureDefinition/HealthInsurance\"\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/HospitalisationPaid\"\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/DiagnosisOfSendingOrganisation\",\r\n                        \"valueReference\": {\r\n                            \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/SequenceNumbeHospitalisation\",\r\n                        \"valuePositiveInt\": 1\r\n                    }\r\n                ],\r\n                \"identifier\": [\r\n                    {\r\n                        \"value\": \"123/5\",\r\n                        \"assigner\": {\r\n                            \"reference\": \"Organization/{{OrganizationId}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"status\": \"waitlist\",\r\n                \"type\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/TypeOfHealthCare\",\r\n                                \"code\": \"special\",\r\n                                \"display\": \"специализированная\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"reason\": [\r\n                    {\r\n                        \"use\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/HospitalisationReasonUse\",\r\n                                    \"code\": \"2\",\r\n                                    \"display\": \"Экстренная госпитализация\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": [\r\n                            {\r\n                                \"concept\": {\r\n                                    \"text\": \"Экстренная госпитализация\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"diagnosis\": [\r\n                    {\r\n                        \"condition\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/TypeOfDiagnosis\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                                    \"code\": \"mainDiagnosis\",\r\n                                                    \"display\": \"Основной диагноз\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/TypeOfDiagnosis\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                                    \"code\": \"additionalDiagnosis\",\r\n                                                    \"display\": \"Сопутствующий диагноз\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"use\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/KindOfDiagnosisCode\",\r\n                                    \"code\": \"Preliminary\",\r\n                                    \"display\": \"Предварительный диагноз\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"condition\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/TypeOfDiagnosis\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                                    \"code\": \"mainDiagnosis\",\r\n                                                    \"display\": \"Основной диагноз\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/TypeOfDiagnosis\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                                    \"code\": \"additionalDiagnosis\",\r\n                                                    \"display\": \"Сопутствующий диагноз\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"use\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/KindOfDiagnosisCode\",\r\n                                    \"code\": \"Clinical\",\r\n                                    \"display\": \"Клинический диагноз\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"condition\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/TypeOfDiagnosis\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                                    \"code\": \"mainDiagnosis\",\r\n                                                    \"display\": \"Основной диагноз\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/TypeOfDiagnosis\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                                    \"code\": \"additionalDiagnosis\",\r\n                                                    \"display\": \"Сопутствующий диагноз\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"use\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/KindOfDiagnosisCode\",\r\n                                    \"code\": \"Final\",\r\n                                    \"display\": \"Заключительный диагноз\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    }\r\n                ],\r\n                \"patient\": {\r\n                    \"reference\": \"Patient/Patient1\"\r\n                },\r\n                \"managingOrganization\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"period\": {\r\n                    \"start\": \"2025-05-01\",\r\n                    \"end\": \"2025-05-07\"\r\n                },\r\n                \"careManager\": {\r\n                    \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\"\r\n                }\r\n            }\r\n        }\r\n    ]\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/$import",
									"protocol": "{{Schema}}",
									"host": [
										"{{Proxy-host}}"
									],
									"path": [
										"fhir",
										"Bundle",
										"$import"
									]
								}
							},
							"response": []
						},
						{
							"name": "получение статуса импорта пакета медицинских данных",
							"request": {
								"method": "GET",
								"header": [
									{
										"key": "X-Fhir-By-Version",
										"value": "0.3.4768",
										"type": "text",
										"disabled": true
									}
								],
								"url": {
									"raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/{{bundleId}}/$status",
									"protocol": "{{Schema}}",
									"host": [
										"{{Proxy-host}}"
									],
									"path": [
										"fhir",
										"Bundle",
										"{{bundleId}}",
										"$status"
									]
								}
							},
							"response": []
						},
						{
							"name": "Поиск законного представителя",
							"request": {
								"method": "GET",
								"header": [
									{
										"key": "X-Fhir-By-Version",
										"value": "0.3.4768",
										"type": "text",
										"disabled": true
									}
								],
								"url": {
									"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/RelatedPerson?_profile=https://fhir.by/StructureDefinition/RelatedPersonTemporaryBy&_sort=-_lastUpdated",
									"protocol": "{{Schema}}",
									"host": [
										"{{Proxy-host}}"
									],
									"path": [
										"fhir",
										"Patient",
										"{{patientId}}",
										"RelatedPerson"
									],
									"query": [
										{
											"key": "_profile",
											"value": "https://fhir.by/StructureDefinition/RelatedPersonTemporaryBy"
										},
										{
											"key": "_sort",
											"value": "-_lastUpdated"
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "проверка сохранения Сведений о ВН в ЦИСЗ",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"var jsonData = pm.response.json();\r",
											"let resourceId = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.id;\r",
											"\r",
											"pm.collectionVariables.set(\"tdBabyCare\", resourceId);\r",
											"\r",
											"console.log(resourceId)\r",
											""
										],
										"type": "text/javascript",
										"packages": {},
										"requests": {}
									}
								}
							],
							"protocolProfileBehavior": {
								"disableBodyPruning": true
							},
							"request": {
								"method": "GET",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": ""
								},
								"url": {
									"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/EpisodeOfCare?_profile=https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisability&date=2025-05-01",
									"protocol": "{{Schema}}",
									"host": [
										"{{Proxy-host}}"
									],
									"path": [
										"fhir",
										"Patient",
										"{{patientId}}",
										"EpisodeOfCare"
									],
									"query": [
										{
											"key": "_profile",
											"value": "https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisability"
										},
										{
											"key": "date",
											"value": "2025-05-01"
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "проверка создания  особых отметок",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"var jsonData = pm.response.json();\r",
											"let resourceId = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.id;\r",
											"\r",
											"pm.collectionVariables.set(\"tdBabyCareSum\", resourceId);\r",
											"\r",
											"console.log(resourceId)\r",
											""
										],
										"type": "text/javascript",
										"packages": {},
										"requests": {}
									}
								}
							],
							"protocolProfileBehavior": {
								"disableBodyPruning": true
							},
							"request": {
								"method": "GET",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": ""
								},
								"url": {
									"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/Flag?_profile=https://fhir.by/StructureDefinition/FlagTemporaryDisability&patient={{patientId}}",
									"protocol": "{{Schema}}",
									"host": [
										"{{Proxy-host}}"
									],
									"path": [
										"fhir",
										"Patient",
										"{{patientId}}",
										"Flag"
									],
									"query": [
										{
											"key": "_profile",
											"value": "https://fhir.by/StructureDefinition/FlagTemporaryDisability"
										},
										{
											"key": "patient",
											"value": "{{patientId}}"
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "проверка создания  Случая ВН",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"var jsonData = pm.response.json();\r",
											"let EpisodeOfCareVN = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.id;\r",
											"\r",
											"pm.collectionVariables.set(\"EpisodeOfCareVN\", EpisodeOfCareVN);\r",
											"console.log(EpisodeOfCareVN)\r",
											""
										],
										"type": "text/javascript",
										"packages": {},
										"requests": {}
									}
								}
							],
							"protocolProfileBehavior": {
								"disableBodyPruning": true
							},
							"request": {
								"method": "GET",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": ""
								},
								"url": {
									"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/EpisodeOfCare?_profile=https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisabilitySum&patient={{patientId}}",
									"protocol": "{{Schema}}",
									"host": [
										"{{Proxy-host}}"
									],
									"path": [
										"fhir",
										"Patient",
										"{{patientId}}",
										"EpisodeOfCare"
									],
									"query": [
										{
											"key": "_profile",
											"value": "https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisabilitySum"
										},
										{
											"key": "patient",
											"value": "{{patientId}}"
										},
										{
											"key": "status",
											"value": "active",
											"disabled": true
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "Получение случая в HTML",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"var jsonData = pm.response.json();\r",
											"let EpisodeOfCareVN = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.id;\r",
											"\r",
											"pm.collectionVariables.set(\"EpisodeOfCareVN\", EpisodeOfCareVN);\r",
											"console.log(EpisodeOfCareVN)\r",
											""
										],
										"type": "text/javascript",
										"packages": {},
										"requests": {}
									}
								}
							],
							"protocolProfileBehavior": {
								"disableBodyPruning": true,
								"disabledSystemHeaders": {}
							},
							"request": {
								"method": "GET",
								"header": [
									{
										"key": "Accept",
										"value": "text/html",
										"type": "text"
									}
								],
								"body": {
									"mode": "raw",
									"raw": ""
								},
								"url": {
									"raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/EpisodeOfCare/{{EpisodeOfCareVN}}",
									"protocol": "{{Schema}}",
									"host": [
										"{{Proxy-host}}"
									],
									"path": [
										"fhir",
										"Patient",
										"{{patientId}}",
										"EpisodeOfCare",
										"{{EpisodeOfCareVN}}"
									]
								}
							},
							"response": []
						}
					]
				}
			]
		}
	],
	"auth": {
		"type": "oauth2",
		"oauth2": [
			{
				"key": "clientId",
				"value": "mis_agsr_web_application",
				"type": "string"
			},
			{
				"key": "accessTokenUrl",
				"value": "https://pp.cisz.by/auth/api/realms/iehr/token",
				"type": "string"
			},
			{
				"key": "authUrl",
				"value": "https://pp.cisz.by/auth/api/realms/iehr/auth",
				"type": "string"
			},
			{
				"key": "tokenName",
				"value": "iehr",
				"type": "string"
			},
			{
				"key": "refreshRequestParams",
				"value": [],
				"type": "any"
			},
			{
				"key": "tokenRequestParams",
				"value": [
					{
						"key": "Origin",
						"value": "https://oauth.pstmn.io/v1/callback",
						"enabled": true,
						"send_as": "request_header"
					}
				],
				"type": "any"
			},
			{
				"key": "authRequestParams",
				"value": [],
				"type": "any"
			},
			{
				"key": "challengeAlgorithm",
				"value": "S256",
				"type": "string"
			},
			{
				"key": "redirect_uri",
				"value": "https://oauth.pstmn.io/v1/callback",
				"type": "string"
			},
			{
				"key": "grant_type",
				"value": "authorization_code_with_pkce",
				"type": "string"
			},
			{
				"key": "addTokenTo",
				"value": "header",
				"type": "string"
			},
			{
				"key": "client_authentication",
				"value": "body",
				"type": "string"
			}
		]
	},
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"requests": {},
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"requests": {},
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "bundleId",
			"value": "b79fff62-a360-11f0-84f8-126a6bc1b2cc"
		},
		{
			"key": "StatusUrl",
			"value": "https://qa.cisz.by/api/fhir/Bundle/b79fff62-a360-11f0-84f8-126a6bc1b2cc/$status"
		},
		{
			"key": "patientId",
			"value": "pa-4d63d46d-8d54-11f0-95dc-a9cca549d46b"
		},
		{
			"key": "actualDateStart",
			"value": "2025-04"
		},
		{
			"key": "actualDateEnd",
			"value": "2025-06"
		},
		{
			"key": "encounterId",
			"value": "Encounter/ea-c7b3dc47-5737-11f0-b9d2-23c6356b018d"
		},
		{
			"key": "encounterCollectionId",
			"value": "Encounter/ea-47b3a4a4-5737-11f0-b9d2-23c6356b018d"
		},
		{
			"key": "conditionId",
			"value": "ea-a796553c-a35f-11f0-ba80-64ecf5fec91a"
		},
		{
			"key": "tempDisSum1",
			"value": "td-71dede91-a35e-11f0-ae65-aae33b585be8"
		},
		{
			"key": "tempDis1",
			"value": "td-7189829d-a35e-11f0-ae65-aae33b585be8"
		},
		{
			"key": "flag1",
			"value": "td-34f11cca-a35f-11f0-ba80-64ecf5fec91a"
		},
		{
			"key": "tempDis2",
			"value": "td-9ab9c08f-a35e-11f0-ae65-aae33b585be8"
		},
		{
			"key": "PractitionerRoleHead",
			"value": "32eec4d4-f9c3-11ef-a781-7a5a35dbaebf"
		},
		{
			"key": "tempDis3",
			"value": "td-cc299344-a35e-11f0-ae65-aae33b585be8"
		},
		{
			"key": "tempDis4",
			"value": "td-19b82fdc-7f6a-11f0-810f-94cd712ce966"
		},
		{
			"key": "PractitionerRoleHeadInvalid",
			"value": "f6fb22fa-1b77-11f0-8257-f1172741d6fc"
		},
		{
			"key": "tempDisClose",
			"value": "td-7d22aae9-a35f-11f0-ae65-aae33b585be8"
		},
		{
			"key": "tempDisOneDay",
			"value": "td-a9ec8ec2-a35f-11f0-ae65-aae33b585be8"
		},
		{
			"key": "patientBabyId",
			"value": "pa-c203d730-7775-11f0-9b52-790a26412bd2"
		},
		{
			"key": "tdBabyCare",
			"value": "td-e44f823d-a35f-11f0-ae65-aae33b585be8"
		},
		{
			"key": "tdBabyCareSum",
			"value": "td-e457704c-a35f-11f0-ae65-aae33b585be8"
		},
		{
			"key": "tdBabyCareProlong",
			"value": "td-a0542717-a360-11f0-ae65-aae33b585be8"
		},
		{
			"key": "tdBabyCareClose",
			"value": "td-cefb52ee-a360-11f0-ae65-aae33b585be8"
		},
		{
			"key": "episodOfCareId",
			"value": ""
		},
		{
			"key": "EpisodeOfCareVN",
			"value": ""
		}
	]
}